cancel
Showing results for 
Search instead for 
Did you mean: 
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 Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

Power BI Dev Camp Session 22 with aka link 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!