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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply

Show percentage of total by levels

Hi,

 

I have found a way to compute the percentage of each Status under each Source, but now the percentage of each Source is 100%,

I need it to be the percentage of the column total, please advise if you can, thank you!

 

Capture.PNG

4 REPLIES 4
v-diye-msft
Community Support
Community Support

Hi @natureorigin01 

 

If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly. If not, please kindly elaborate more. thanks!

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
ryan_mayu
Super User
Super User

@natureorigin01 

 

Is this what you want?

 

Measure = 
VAR amount= sum('Table'[value])
VAR total = CALCULATE(sum('Table'[value]),ALLEXCEPT('Table','Table'[Type]))
return amount/total

Measure 2 = 
VAR amount= sum('Table'[value])
VAR total = CALCULATE(sum('Table'[value]),ALL('Table'))
return amount/total

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi,

 

Thanks for your reply,

 

I want something like this, only 1 column for percentage, not 2.

The percentage for each source row should be the total lead count / column total (5% for TER as 42/792)

and the percentage for each status under each source should be the total lead count of the status / total lead count of the source (33% for approved under TER as 14/42)

 

Capture.PNG

@natureorigin01 

 

I have updated the DAX. Please have a try.

 

Measure 2 = 
VAR amount= sum('Table'[value])
VAR total = CALCULATE(sum('Table'[value]),ALL('Table'))
var total2 = CALCULATE(sum('Table'[value]),ALLEXCEPT('Table','Table'[Type]))
return if(ISFILTERED('Table'[subtype]),amount/total2,amount/total)

1.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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