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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Julia_Mav
Helper II
Helper II

Options for Version Date Filtering

Hi community,

 

Could you please share some ideas on how to handle the 'Version Date' filter? The default setting for the report should display the latest version date, but we also want to provide users with flexibility to choose the version dates they need. We are considering an option to allow users to view the latest version date by selecting 'Yes,' while still providing the ability for users to manually choose their desired version date.

Your insights and suggestions are greatly appreciated!

 

Julia_Mav_0-1705998525861.png

 

1 ACCEPTED SOLUTION
v-weiyan1-msft
Community Support
Community Support

Hi @Julia_Mav ,

 

I am not sure if I understood your question correctly.
Based on my understanding, I created some data:

vweiyan1msft_0-1706522505846.png

1. You can create a calcualted table.

 

Table 2 = DATATABLE("Whether to view the latest version date",STRING,
                    {{"Yes"}, {"No"}}
                   )

 

vweiyan1msft_1-1706522656910.png

2. Use the following code to create a Measure.

 

Measure = 
VAR Toggle = SELECTEDVALUE('Table 2'[Whether to view the latest version date])
VAR Temp = IF(Toggle = "Yes",1,0)
RETURN 
IF(Temp = 1,
   IF(SELECTEDVALUE('Table'[Version Date]) = TODAY(),1,0),
   1)

 

3. Select your visual object, put the measure in the “Filters on this visual” section, and filter it by “Measure is 1”.

vweiyan1msft_2-1706522833972.png

The field of the slicer is from Table 2. When you select "Yes" in the slicer, Result is as below.

vweiyan1msft_3-1706522864931.png

To allow users to manually select the desired version date, you can create another slicer, Result is as below.

vweiyan1msft_4-1706522901226.png

Please correct me if I misunderstood your needs.

 

Best Regards,
Yulia Yan

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-weiyan1-msft
Community Support
Community Support

Hi @Julia_Mav ,

 

I am not sure if I understood your question correctly.
Based on my understanding, I created some data:

vweiyan1msft_0-1706522505846.png

1. You can create a calcualted table.

 

Table 2 = DATATABLE("Whether to view the latest version date",STRING,
                    {{"Yes"}, {"No"}}
                   )

 

vweiyan1msft_1-1706522656910.png

2. Use the following code to create a Measure.

 

Measure = 
VAR Toggle = SELECTEDVALUE('Table 2'[Whether to view the latest version date])
VAR Temp = IF(Toggle = "Yes",1,0)
RETURN 
IF(Temp = 1,
   IF(SELECTEDVALUE('Table'[Version Date]) = TODAY(),1,0),
   1)

 

3. Select your visual object, put the measure in the “Filters on this visual” section, and filter it by “Measure is 1”.

vweiyan1msft_2-1706522833972.png

The field of the slicer is from Table 2. When you select "Yes" in the slicer, Result is as below.

vweiyan1msft_3-1706522864931.png

To allow users to manually select the desired version date, you can create another slicer, Result is as below.

vweiyan1msft_4-1706522901226.png

Please correct me if I misunderstood your needs.

 

Best Regards,
Yulia Yan

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Fowmy
Super User
Super User

@Julia_Mav 
Please check if this video can help you resolve your issue: https://youtu.be/KBEsPGxDxHM

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.