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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
kkalyanrr
Helper V
Helper V

Passing selected dates in slicer to a measure

Hello,

 

I'm using the following measure to calculative Cummlative Sum..

 

Cumulative Actual(ETS) = CALCULATE(CALCULATE(sum('Main Table'[OrderValue]),FILTER(ALL('Calendar'[Date].[Date]),'Calendar'[Date].[Date]<=MAX('Calendar'[Date].[Date]) )) , 'Calendar'[FiscalYear] = "FY17")

 

My requirement is, I'm using a Date slicer in the Dashboard UI and I'm looking for a measure that calculates the Cummulative Amount between the dates mentioned by User. Please help.

 

 KYC.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@kkalyanrr,

Please check the modified PBIX file below.

https://1drv.ms/u/s!AhsotbnGu1Nok3Ll8CzEooAPooVx

Regards,
Lydia

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

@kkalyanrr,


Please change your DAX to  the following:

Cumulative Actual(ETS) = CALCULATE(CALCULATE(sum('Main Table'[OrderValue]),FILTER(ALLSELECTED('Calendar'[Date].[Date]),'Calendar'[Date].[Date]<=MAX('Calendar'[Date].[Date]) )) , 'Calendar'[FiscalYear] = "FY17")



Regards,
Lydia

calerof
Impactful Individual
Impactful Individual

Hi @Anonymous ,

 

How do you create this measure for the same period last year?

 

Thanks a lot!

 

Fernando

 

Hello @Anonymous ,

 

No matter what the starting date in the Slicer, this measure always sums the values from first date in the dataset to end date..

But I'm looking for a measure where when user gives a i/p date , it should sumup the values from that date to end date..

 

Thanks,

Kalyan..

Anonymous
Not applicable

@kkalyanrr,

When you change ALL  function to ALLSELECTED function, the measure should change based on your date slicer. Would you please share sample data of your table so that I can test?

Regards,
Lydia

Anonymous
Not applicable

@kkalyanrr,

Please check the modified PBIX file below.

https://1drv.ms/u/s!AhsotbnGu1Nok3Ll8CzEooAPooVx

Regards,
Lydia

Anonymous
Not applicable

The link doesn't seem to work. Do you mind reuploading the solution?

Thank you,

Anonymous
Not applicable

@Anonymous ,

Please open a new thread describing your issue.

Regards,
Lydia

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors