Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
dofrancis3
Resolver I
Resolver I

Percentage betwen two tables

Dear colleagues,

Please i need your help:

 

I have two tables (T1 and T2)

  • In the T1 I have a cumulative Column named “My_Cumul”
  • In the T2 I have a Mesure named “Pop_cumul”

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

2 ACCEPTED SOLUTIONS
vivek31
Resolver II
Resolver II

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))

vivek31_1-1739356219155.png

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

View solution in original post

Dear @vivek31 thank you so much for your support

View solution in original post

5 REPLIES 5
vivek31
Resolver II
Resolver II

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))

vivek31_1-1739356219155.png

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

Dear @vivek31 thank you so much for your support

bhanu_gautam
Super User
Super User

@dofrancis3 Try using

DAX
Percentage =
DIVIDE(
SUM(T1[My_Cumul]),
SUM(T2[Pop_cumul]),
0
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






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.

Please advise.

 

@dofrancis3 , Use it direct than 

DIVIDE(
SUM(T1[My_Cumul]),
[Pop_cumul],
0
)

 

If you still face issue share PBIX or sample data




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.