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
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 !!!
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
115 | |
112 | |
105 | |
95 | |
58 |
User | Count |
---|---|
174 | |
147 | |
136 | |
102 | |
82 |