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.
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 !!!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
78 | |
65 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |