Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 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 team please I need help,
I have this table :
Name Number_A Number_C
AA 5 6
BB 9 10
Total 14 16
And I need to calculate Number_C for each Name Divide by the total of Number_A
Exemple : I need to calculate: (6/14)*100
(10/14)*100 …
NB : Number_A / Number_C are 2 calculate measure
Thanks for your help ,
Solved! Go to Solution.
Replace ALL(YourTable) with ALLSELECTED() and it should do the thing.
Hi,
You can create two measures:
Total_Number_A = CALCULATE([Number_A];ALL(YourTable)) Number_C / Total_Number_A % = DIVIDE([Number_C];[Total_Number_A])
Then just use Formatting options in Modeling tab of Power BI Desktop to make the last one measure formatted as percentage.
Hope that helps.
Cheers,
Pawel
hi @Anonymous
Thanks for you answer but the problem that I use a filter so when I use
Total_Number_A = CALCULATE([Number_A];ALL(YourTable))
It gives me all the count …
Replace ALL(YourTable) with ALLSELECTED() and it should do the thing.
@Anonymous
thanks for your help
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
79 | |
54 | |
39 | |
35 |
User | Count |
---|---|
102 | |
82 | |
48 | |
48 | |
48 |