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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Daxmon_23
Frequent Visitor

dynamic percentage

Hello everyone.

I am currently working with the following dynamic table.

The idea of this is that in the %Total column of Count Uid, 100% appears for the product in general, but when subdividing it by the price range, it appears to me the percentage that each range is distributed to form 100%.

Daxmon_23_0-1676847468549.png

I currently have this DAX measure, but I have not been able to discriminate each percentage in order to achieve my objective.


%Total Count Uid for Ranks =
VAR Den =
CALCULATE([Count Uid], ALLSELECTED(Compliances))

RETURN
DIVIDE([Count Uid],Den)

If anyone can help me with this I would be grateful.

Thanks in advance for any assistance.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Daxmon_23 , Try like

 

Try like

 

%Total Count Uid for Ranks =
WHERE The =
CALCULATE([Count Uid], ALLSELECTED())

RETURN
DIVIDE([Count Uid],Den)

 

 

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=24270s

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Daxmon_23 , Try like

 

Try like

 

%Total Count Uid for Ranks =
WHERE The =
CALCULATE([Count Uid], ALLSELECTED())

RETURN
DIVIDE([Count Uid],Den)

 

 

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=24270s

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

thanks for your help, that was so usefull

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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