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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Julia_Mav
Advocate I
Advocate I

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors
Top Kudoed Authors