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
sjoshi
Helper II
Helper II

Calculate value between two dates: Finance BI

Hello 

 

1. I'm new to power BI. I wanted to give user two slicers one for start date and one for end date but with two differnt slicers filter was not getting applied on data so end up using between dates. Is there any way I can use two slicers and apply one as my start and other as my end filter

This slicer start date and end date are calendar dates coming from calender dimension.

2. Report Should calculate sum of amout based on above dates but it should calculate sum of amout based on start of fiscal year not the dates which are entered by user. Fiscal year start is 1St July.

EX:  Start Date:  Jan 2018   End Date: March 2018

Report should show three columns in the output one for each Jan, Feb, March 

Sum of amount for Jan will be 1st july 2017 to 31 of Jan 2018 

Sum of amount for Feb will be 1st july 2017 to 28 of Feb2018 

Sum of amount for March will be 1st july 2017 to 31 of March . If I expand each node will give each  day sum

 

I have deisgned like below as of now but dont know how to take slicers values and calculate sum from start of fiscal year. Wnated to design like second screenshot

 

DateSlicersCalculateSum.pngEXpected.png

4 REPLIES 4
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @sjoshi

 

You may try to use FILTER Function. Here are the references for you.

 

https://community.powerbi.com/t5/Desktop/How-to-display-total-sales-until-selected-month-from-slicer...

 

https://www.daxpatterns.com/cumulative-total/

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Seward12533
Solution Sage
Solution Sage

Hi while not the same problem this solution offers a similar approach to allow date/time slicer. The idea is to use disconnected tables to get the input from the user and then filter in Dax based on these inputs.

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

Hello 

Still not able to achieve it need more solution in both date and YTD part

 

Thanks

Smita

Can you share a PBIX workbook with sample data?

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!

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.