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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Percentage Of Total Measure

Hi,

 

I want to add a a column to my table that is essentailly:

 

Column A Row Value / Sum(Column A)

 

But I need it to interact with a slicer so using a calculated column doesn't work because it calculates against the unfiltered sum as opposed to the slider filtered sum. I think I need to use a measure but I can't figure out how to get from a calculated column with the above formula to a measure that creates a column.

It feels like this should be really simple but I just cant seem to fomat it right

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

Measure = 
Selectedvalue([Column which i only want the single value])
/
Calculate(sum([column A]),allselected([column A]))

Try this, we might be using different delimiters!


Connect on LinkedIn

View solution in original post

4 REPLIES 4
tex628
Community Champion
Community Champion

Measure = 
Selectedvalue([Column which i only want the single value])
/
Calculate(sum([column A]);allselected([column A]))

Try this in a matrix with [Column which i only want the single value] first and then this measure

🙂


Connect on LinkedIn
Anonymous
Not applicable

Thanks, that looks along the lines of what I want, only issue is that the error "The syntax for ';' is incorrect" displays so I can't submit the measure.

tex628
Community Champion
Community Champion

Measure = 
Selectedvalue([Column which i only want the single value])
/
Calculate(sum([column A]),allselected([column A]))

Try this, we might be using different delimiters!


Connect on LinkedIn
Anonymous
Not applicable

Spot on, works perfect, Thanks!

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.