Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Dear colleagues,
Please i need your help:
I have two tables (T1 and T2)
So, I would like to calculate the percentage using this formula: “My_Cumul” DIVISE “Pop_cumul”
Please could you help me with the DAX Mesure.
Thank you
Solved! Go to Solution.
HI @dofrancis3 ,
you can use this formula
percentage =
var table_cum = SELECTEDVALUE(Show[**bleep**])
var mesure_cum = [**bleep** show]
RETURN
IF(NOT(ISBLANK(table_cum)) && NOT(ISBLANK(mesure_cum)),DIVIDE(table_cum,mesure_cum))If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.
Thank you
HI @dofrancis3 ,
you can use this formula
percentage =
var table_cum = SELECTEDVALUE(Show[**bleep**])
var mesure_cum = [**bleep** show]
RETURN
IF(NOT(ISBLANK(table_cum)) && NOT(ISBLANK(mesure_cum)),DIVIDE(table_cum,mesure_cum))If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.
Thank you
@dofrancis3 Try using
DAX
Percentage =
DIVIDE(
SUM(T1[My_Cumul]),
SUM(T2[Pop_cumul]),
0
)
Proud to be a Super User! |
|
Dear @bhanu_gautam "Pop_cumul" is a mesure of the T2 it's not a Column. The solution you suggested is when there are two columns, but in this case I have Une collone et une mesure.
@dofrancis3 , Use it direct than
DIVIDE(
SUM(T1[My_Cumul]),
[Pop_cumul],
0
)
If you still face issue share PBIX or sample data
Proud to be a Super User! |
|
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 14 | |
| 7 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 10 | |
| 10 | |
| 6 | |
| 5 |