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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
S_Harrison_DTB
Regular Visitor

Toggle between two date fields

Hi everyone,

 

I have a report which needs to toggle between two dates, e.g. Order date and delivery date

 

The report already uses switches to switch between measures similar to the example below

 

https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Measures-Titles-Using-SWITCH/td-p/20...

 

But I cannot use this for the dates, what I want to do is to set a slicer which selects a reporting format for the dates (i.e. selects between the two different dates) then use that date for all the visualisations on the page

 

Any pointers would be greatly appreciated

 

thank you

 

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

If you want a slicer where a user should be able to select between the 'Type of Date' i.e. Order Date and Delivery Date, then there should be a 'Type of Date' column in your base dataset which should have only two entries - Order Date and Delivery Date.  The Date column should then be related to the Date column of your Calendar Table.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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