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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
szablock
Helper I
Helper I

DAX calculation

a

I sturugle with Dax problem I have data model which looks like that

The third measure is result of calculation

Measure 2/ Measure 1

What I'd like to do is sum of all result for one month

which is sum of elements for one month

At the moment I use simple DAX Divide (sum(Measure1) , sum(mesure2)

1 ACCEPTED SOLUTION

@szablock

 

In your formula, the ALLEXCEPT() will have your calculation group on month so that it will return incorrect result. For your requirement, you just need to multiple those two column and use SUMX() without any filter.

 

Measure 6 = SUMX(Table3,Table3[Hired]*Table3[Fired])

888.PNG

 

 

Regards,

View solution in original post

9 REPLIES 9
szablock
Helper I
Helper I

2.jpg

table which explain my problem

 

Slawek

@szablock

 

 

 

M3 = DIVIDE(Sum(Table2[M1]),sum(Table2[M2]))

Replace sum(m1) , sum(m2) with your measure

 

 

M4 = Sumx(ALLEXCEPT(Table2,Table2[F]),[M3])

M4 give answer to your question.

 

 

 




Lima - Peru

M 3M 3M 4M 4

Unfortunatlly is not working the Card Report dosen't dispaly data

@szablock

 

What is the error message showed?




Lima - Peru

With M3With M3Without M3Without M3

I a bit simplyfy the model right now I have two columns

hired , fired   and thirdth which is

Mesure 2 = hired * fired

 

What I would like to do is pass the sum of multiply to card so in my case that would be 903

 

Measure 2 = CALCULATE(   sum(Fact_HR_KPI4[fired]) * SUM(Fact_HR_KPI4[hired]))

 

and Measure 3 = SUMX(ALLEXCEPT(Fact_HR_KPI4;Fact_HR_KPI4[month_period]);[Measure 2])

which I use for card

18.jpg

@szablock

 

In your formula, the ALLEXCEPT() will have your calculation group on month so that it will return incorrect result. For your requirement, you just need to multiple those two column and use SUMX() without any filter.

 

Measure 6 = SUMX(Table3,Table3[Hired]*Table3[Fired])

888.PNG

 

 

Regards,

I a bit simplyfy the model right now I have two columns

hired , fired   and thirdth which is

Mesure 2 = hired * fired

 

What I would like to do is pass the sum of multiply to card so in my case that would be 903

 

Measure 2 = CALCULATE(   sum(Fact_HR_KPI4[fired]) * SUM(Fact_HR_KPI4[hired]))

 

and Measure 3 = SUMX(ALLEXCEPT(Fact_HR_KPI4;Fact_HR_KPI4[month_period]);[Measure 2])

which I use for card

18.jpg

Ok at the moment it replace some value but It not react on Hierarhy Slicer I mean If I add this to table It shows all records even when I select one on slicer

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors