Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe 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.
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
Now I created a another TOPN table as following which gives me this
Table = TOPN(2,'Table1',[Column1])
Is it possible to get the measure from Table 1 in the TOPN table as following
Column1 | Measure |
20 | 0.18 |
80 | 0.73 |
Thank you in advance.
Solved! Go to Solution.
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
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
@v-shex-msftgreat thanks !!!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
126 | |
78 | |
78 | |
59 | |
51 |
User | Count |
---|---|
165 | |
83 | |
68 | |
68 | |
59 |