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! Learn more

Reply
nandvroe
Frequent Visitor

Help totaling measure correctly

I am very inexperienced with Dax and am needing help with a measure.  The measure works correctly by row, but does not total correctly.  I understand why it doesn't total correctly, but haven't been able to modify it to total correctly.  Any help would be greatly appreciated.  I have attempted this in a calculated column, but get the wrong answer.  I believe the reason is that one "ProdNumber" can have several lines all started and ended on the same day, however each line is counted as a day and then it sums as several days instead of just one day. Below is my Dax Measure.

               

         DaysToComplete = CALCULATE(Sum(FiscalDate[IsWorkday]),
                  DATESBETWEEN((FiscalDate[Date]),
                  Minx(ForecastTbl,ForecastTbl[StartedDate]),
                  Minx(ForecastTbl,ForecastTbl[EndDate])
           ))
 
Thank you for your help.

 

 

3 REPLIES 3
Anonymous
Not applicable

We need to see:

 

1. The model.

2. Some sample data.

3. Some correct results.

 

You can do it all by pasting pics in here and descriptions in plain English. Always remember that it's you who knows the data and what you want to achieve. We don't.

 

Best

Darek

Thank you for your response.
I was actually able to get my calculated column working as expected so I will not need the measure.  

Anonymous
Not applicable

Good.

 

Best

Darek

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Users online (14,944)