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