The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi
Im wanting to drill through from a visual on either full month or specific date. If drill on full month I want it to say i.e. June 2021 and if they select a specific date I want it to say i.e. 06/06/2021.
I have tried numerous ways of getting the DAX to work but unfortuantely I cant seem to write the correct DAX
Any help would be really appreciated
Many thanks
Karen
Solved! Go to Solution.
Oh, it's the title!
Here's what works for me:
Dynamic Title =
VAR _Scope =
SWITCH (
TRUE (),
HASONEVALUE ( 'Calendar'[Date] ), SELECTEDVALUE ( 'Calendar'[Date] ),
HASONEVALUE ( 'Calendar'[Year Month] ), SELECTEDVALUE ( 'Calendar'[Year Month] ),
"Time Period"
)
RETURN
"Drill through for " & _Scope
You can use this as a card, or in a text box by adding a value.
Oh, it's the title!
Here's what works for me:
Dynamic Title =
VAR _Scope =
SWITCH (
TRUE (),
HASONEVALUE ( 'Calendar'[Date] ), SELECTEDVALUE ( 'Calendar'[Date] ),
HASONEVALUE ( 'Calendar'[Year Month] ), SELECTEDVALUE ( 'Calendar'[Year Month] ),
"Time Period"
)
RETURN
"Drill through for " & _Scope
You can use this as a card, or in a text box by adding a value.
Hi there
Thanks for the above. Sadly its not working for me. Here's my DAX
Can you please advise what I have done wrong.
Thank you
Karen
That's hard to say. It works in my testing enviorment.
Ah my bad, I'd created the DAX as a new column instead of a measure. Works a treat. Thank you so much 🙂
Kind regards
Karen
Hi Karen,
Can you post 3 screen shots that will help understand the problem?
Thank you
Hi there
So sorry for late reply and thanks for getting back to me
Here's the info you need - Just to say I dont have a problem with getting the drill through to work its the dynamic title that I cant get to work. 🙂
The below chart is by Month, so when they drill through to the back data page I want the dynamic title to say i.e. june 2021
The below chart is on the same page but they can drill through on a specific date. So select 01 October 2021 then the dynamic title will say that date
So basically which ever chart they drill on will be reflected in the dynamic title (month or day)
Hope this makess ense.
Many thanks
Karen
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
8 | |
8 |