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
smpa01
Super User
Super User

% of total measure in TOP N Table

Hello Experts,

 

I have a table (Table1) as following

 

Column1

10
20
80

 

I did a measure on that which is following to get the % of total

 

Measure = SUM(Table1[Column1])/CALCULATE(SUM(Table1[Column1]),ALLSELECTED())

it gives me following

 

Cx.JPG

 

Now I created a another TOPN table as following which gives me this

 

Table = TOPN(2,'Table1',[Column1])

 

 

CZ.JPG

 

Is it possible to get the measure from Table 1 in the TOPN table as following

Column1 Measure
200.18
800.73

 

Thank you in advance.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @smpa01 ,

You can use all function to replace allselected function in your formula:

Measure = SUM(Table2[Column1])/CALCULATE(SUM(Table1[Column1]),ALL(Table1))

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @smpa01 ,

You can use all function to replace allselected function in your formula:

Measure = SUM(Table2[Column1])/CALCULATE(SUM(Table1[Column1]),ALL(Table1))

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

@v-shex-msftgreat thanks !!!

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

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.

Top Solution Authors