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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
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!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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