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
Power BI Show Ep 4 Post Show Carousel.jpg

The Power BI Community Show

Shabnam Watson demos Incremental refresh & Hybrid Tables and Leila Etaati demos Charticulator.

PBI April Release 2022 768x460.png

Check it out!

Click here to read more about the April 2022 updates!

Power BI Dev Camp Session 22 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!