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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
pawan78
New Member

Selecting Date basis date selected from Slicer

Hi 

Want to create a calculated column which compares a date field "Due for Sales" with another Date Field "B" and returns the value (Not Due/Overdue) basis A<B .

I also want user to provide value to date field B. User can do basis selecting the date from slicer on field B

Please guide how to do the same ?

 

Am able to compare the Due for Sales with Today date  as below 

Z_Overdue Date = if(A[Due for Sales]<[Today],"Due","Not Due")
 
But want to create [Today] as dynamic date value basis selection from slicer (Date Field "B")
1 ACCEPTED SOLUTION
Bijen_Shah
Regular Visitor

Hi @pawan78 

 

1. To create a dynamic date value filter you must create a calendar table which has the relevant dates to be filtered.

With this dynamic approach creating a static calculated column wouldn't be ideal.

2. Create measures similar to the below thread which will give you a dynamic due sales sum for different selections.

https://community.fabric.microsoft.com/t5/Desktop/sum-of-amounts-from-start-date-to-selected-date/td...


Did I answer your question? Mark my post as a solution!
Appreciate your Kudos!! Happy to Help!@pawan78 

View solution in original post

3 REPLIES 3
pawan78
New Member

Thanks a lot Bijen 

 

This is helpful , also the issue is that i need to create a chart basis the data (# Deals basis Due / Overdue date) , but if i create a measure , i am unable to create the chart  as below. (here Z_Overdue Date is Column)

Can you guide on same as well 

pawan78_0-1708339620100.png

 

Hi @pawan78 ,

 

I think you can use measures in bar charts with Column Date on X Axis and Measure Values on Y Axis.

If you can share the specific issue you face on the chart or a pbix file would be easier to help you better.

Did I answer your question? Mark my post as a solution!
Appreciate your Kudos!! Happy to Help!

Bijen_Shah
Regular Visitor

Hi @pawan78 

 

1. To create a dynamic date value filter you must create a calendar table which has the relevant dates to be filtered.

With this dynamic approach creating a static calculated column wouldn't be ideal.

2. Create measures similar to the below thread which will give you a dynamic due sales sum for different selections.

https://community.fabric.microsoft.com/t5/Desktop/sum-of-amounts-from-start-date-to-selected-date/td...


Did I answer your question? Mark my post as a solution!
Appreciate your Kudos!! Happy to Help!@pawan78 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.