Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
rpinxt
Power Participant
Power Participant

Stacked column chart can only have % of grandtotal?

I have this stacked column graph. It turns the quantity into % of grand total.

rpinxt_0-1717078094137.png

But as you see all is on time so I would want 100% columns in every period.

Now it splits that by period.

 

When I convert it to a matrix you see this behavior too:

rpinxt_1-1717078207505.png

But here in the matrix you can change "show value as"

rpinxt_2-1717078748786.png

 

rpinxt_3-1717078795249.png

 

So this is what I want. But if I change it back to a stacked columns chart again and rearange the field it is not working anymore.

I can only show as % of grandtotal.

What would be the way to fix this?

Probably need to use another measure for it?

 

 

1 ACCEPTED SOLUTION
v-junyant-msft
Community Support
Community Support

Hi @rpinxt ,

If you want 100% columns in every period, you can try this visual:

vjunyantmsft_0-1717120992214.png
Here is my sample datas:

vjunyantmsft_2-1717121249683.png

vjunyantmsft_3-1717121257670.png

And the final output is as below:

vjunyantmsft_1-1717121017171.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-junyant-msft
Community Support
Community Support

Hi @rpinxt ,

If you want 100% columns in every period, you can try this visual:

vjunyantmsft_0-1717120992214.png
Here is my sample datas:

vjunyantmsft_2-1717121249683.png

vjunyantmsft_3-1717121257670.png

And the final output is as below:

vjunyantmsft_1-1717121017171.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ahh....thanks @v-junyant-msft 

Should have thought about this myself, but thanks for reminding me.

But you cannot switch between percentage view and quantity units view then.

 

That is ok because for now we only want to see percentages.

rpinxt
Power Participant
Power Participant

Trying my luck with this measure:

Qty% =
VAR __UNFILTERED_VALUE = CALCULATE([Qty], dimDate[Period] <= MAX(dimDate[Period]))
VAR __MEASURE_VALUE = [Qty]
RETURN
//DIVIDE(__MEASURE_VALUE,__UNFILTERED_VALUE)
__UNFILTERED_VALUE
 
So __MEASURE_VALUE will be ok but I need the unfiltered value on period.
rpinxt_0-1717081058300.png

Qty% here should for period 1 sum 8036 + 4404.

Then I can divide 8036 by 12440 and 4404 by 12440.

 

But I cannot get it to subtotal by period.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.