Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Aaseemsood
Contributor
Contributor

Stacked Bar Chart in %

 

 

 I have a Stacked Bar Chart which i need in %.

Aaseemsood_0-1614238293302.png

 

I have two Dimensions and one measure.

Aaseemsood_1-1614238102502.png

 

The expression im using is below:

 

Count({<Year = {"$(=Max(Year(TODAY())-1))"}, Transaction_Type={'New Booking'},[Service Type]={'Air'},[Dom / INT'L]={'Domestic'}, [Trip anticipation]-={'Undefined','Back Dated'}>} [# of Transactions])

 

I want a 100% Stacked Bar chart. please let me know if there is a possibility.

 

3 Replies
MayilVahanan
MVP
MVP

HI @Aaseemsood 

Try like below

Count({<Year = {"$(=Max(Year(TODAY())-1))"}, Transaction_Type={'New Booking'},[Service Type]={'Air'},[Dom / INT'L]={'Domestic'}, [Trip anticipation]-={'Undefined','Back Dated'}>} [# of Transactions]) /

Count(Total <Month>{<Year = {"$(=Max(Year(TODAY())-1))"}, Transaction_Type={'New Booking'},[Service Type]={'Air'},[Dom / INT'L]={'Domestic'}, [Trip anticipation]-={'Undefined','Back Dated'}>} [# of Transactions])

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Aaseemsood
Contributor
Contributor
Author

Hi Mayil Vahanan,

Thanks for the Help.

I could get the % in the Stacked Bar but not a 100% tacked Bar using the suggested formula.

 

Aaseemsood_0-1614252006222.png

By any chance you could help in making a 100% stacked bar chart.

Thanks Again

Aaseem 

MayilVahanan
MVP
MVP

HI @Aaseemsood 

Can you send ur sample qvf file or sample data?

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.