I want a default message on a card when a slicer option is not selected.
If my field name has a blank as an option, I can use this successfully:
Default Sales Role Code Segment =
IF(ISFILTERED(Customer[Sales Role Code]),
FIRSTNONBLANK(Customer[Sales Role Code],Customer[Sales Role Code]),
"None Selected")
If my field doesn't have a blank as an option, the above shows the first name.
Example of field options:
Sales Role Code = blank, ENT, STA, SMB
Channel Name = Carton, FoodService,VMG
I'm struggling to rewrite the above measure with no success. Any help is greatly appreaciated. (Please note that I cannot create calculated columns as my tables are read only. This inhibits some Dax creation.)
Solved! Go to Solution.
@Thackeb not sure why you are doing FIRSTNONBLANK
Test = SELECTEDVALUE ( Customer[Sales Role Code], "None Selected" )
✨ Follow us on LinkedIn
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Thackeb not sure why you are doing FIRSTNONBLANK
Test = SELECTEDVALUE ( Customer[Sales Role Code], "None Selected" )
✨ Follow us on LinkedIn
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Thank you! Yes, I made this much more difficult. You are awesome!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!
User | Count |
---|---|
204 | |
69 | |
69 | |
57 | |
57 |
User | Count |
---|---|
251 | |
218 | |
105 | |
74 | |
73 |