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, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 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.

October NL Carousel

Fabric Community Update - October 2024

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