Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Kaplan512
Contributor II
Contributor II

How to add css on a sheet?

Hello everyone! I am very new to Qlik Sense and I am trying to add css rules to my sheet to change some styles. I read this article and watched this video and seems like I need to use Multi KPI object for that purpose. What I did: I just added a multi KPI object to the random place on my sheet and implement some simple css to see how it works, but I don't get any effect. 

Kaplan512_0-1636543717395.png

Kaplan512_1-1636543745960.png

Can someone tell me what I did wrong and how can I apply css to the objects are placed on my sheet?

Thank you

 

Labels (2)
1 Solution

Accepted Solutions
Andrei_Cusnir
Specialist
Specialist

Hello,

 

From the screenshot that you have provided, I can see that the Multi KPI object displays the data "#1", which means that you haven't specified the Dimensions and Measures yet. I have reproduced this behavior on my side and I have noticed that after adding Dimensions and Measures to the object, the CSS style was applied. 

 

For example I have two objects with the following CSS styles:

div[tid='DyParJL']{
opacity:0.1!important;
};

 

and

 

div[tid='RQPXytZ']{
opacity:0.1!important;
};

 

Here is the observed behavior:

SCREENSHOT

 

As you can see, the object on the left has Dimensions and Measures so the CSS is applied, but on the right the CSS is not applied, since the Dimensions and Measures are missing. 

 

Try adding the Dimensions and Measures to your object and check if the CSS is applied.

 

I hope that this information was helpful. In case it has helped you resolve the issue, please mark it as solution so other community members could find this answer as well!

Help users find answers! Don't forget to mark a solution that worked for you! 🙂

View solution in original post

1 Reply
Andrei_Cusnir
Specialist
Specialist

Hello,

 

From the screenshot that you have provided, I can see that the Multi KPI object displays the data "#1", which means that you haven't specified the Dimensions and Measures yet. I have reproduced this behavior on my side and I have noticed that after adding Dimensions and Measures to the object, the CSS style was applied. 

 

For example I have two objects with the following CSS styles:

div[tid='DyParJL']{
opacity:0.1!important;
};

 

and

 

div[tid='RQPXytZ']{
opacity:0.1!important;
};

 

Here is the observed behavior:

SCREENSHOT

 

As you can see, the object on the left has Dimensions and Measures so the CSS is applied, but on the right the CSS is not applied, since the Dimensions and Measures are missing. 

 

Try adding the Dimensions and Measures to your object and check if the CSS is applied.

 

I hope that this information was helpful. In case it has helped you resolve the issue, please mark it as solution so other community members could find this answer as well!

Help users find answers! Don't forget to mark a solution that worked for you! 🙂