cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rsaphier
Frequent Visitor

Display selection of slicer value as static value in table

What would be the correct DAX syntax to use based on this example?


There is a slicer in PBI for Selected  Period  which is filtered to Apr-2019.   For the Selected Period  in the table below,  I need to display this value (as static) for each Reporting Month.   The interaction between the slicer and the table is set to none. 

 

Reporting Month

Selected Period

Jan-2019

Apr-2019

Feb-2019

Apr-2019

Mar-2019

Apr-2019

Apr-2019

Apr-2019

May-2019

Apr-2019

Jun-2019

Apr-2019

Jul-2019

Apr-2019

Aug-2019

Apr-2019

Sep-2019

Apr-2019

Oct-2019

Apr-2019

Nov-2019

Apr-2019

Dec-2019

Apr-2019

 

My current logic just repeats the respective Reporting Period. 

Selected Period =

VAR selectedPeriod = IF ( HASONEVALUE ( 'Reporting Period'[Reporting Month ] ), SELECTEDVALUE ( 'Reporting Period'[Reporting Month] ), 0 ) RETURN selectedPeriod

 

2 REPLIES 2
parry2k
Super User
Super User

@rsaphier your report period and selected month are from same table or seperate tables?






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





rsaphier
Frequent Visitor

They are from the same table.

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 episode 5 with aka link.jpg

The Power BI Community Show

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

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!