- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

SELECTED VALUE While unselect
Team
I have filter table = List[levels)
if list(levels) selected then the dax formula works if unselect filter then it showing as blank data
my question here is if filter applied then show filter data else show ALL.. what is DAX Formula ?
VAR _mod = SELECTEDVALUE('List'[Levels])
RETRUN CALCULATE(-SUM('Data'[amount])/1000000,
'GPS'[File] =_mod,
'GPS'[File2] ="CDS"
)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @RajK2 - you can modify your DAX to check if a selection exists in 'List'[Levels]. If a filter is applied, it should use the selected value
VAR _mod = SELECTEDVALUE('List'[Levels])
RETURN
CALCULATE(
-SUM('Data'[amount]) / 1000000,
'GPS'[File] = IF(ISBLANK(_mod), 'GPS'[File], _mod),
'GPS'[File2] = "CDS"
)
please check the above and hope it works.
Proud to be a Super User! | |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@RajK2 Try:
VAR _mod = SELECTEDVALUE('List'[Levels])
VAR _result =
IF( _mod = BLANK(),
CALCULATE(-SUM('Data'[amount])/1000000, 'GPS'[File2] ="CDS"),
CALCULATE(-SUM('Data'[amount])/1000000, 'GPS'[File] =_mod, 'GPS'[File2] ="CDS" )
)
RETURN
_result
Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!: Power BI Cookbook Third Edition (Color)
DAX is easy, CALCULATE makes DAX hard...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @RajK2 - you can modify your DAX to check if a selection exists in 'List'[Levels]. If a filter is applied, it should use the selected value
VAR _mod = SELECTEDVALUE('List'[Levels])
RETURN
CALCULATE(
-SUM('Data'[amount]) / 1000000,
'GPS'[File] = IF(ISBLANK(_mod), 'GPS'[File], _mod),
'GPS'[File2] = "CDS"
)
please check the above and hope it works.
Proud to be a Super User! | |

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
05-20-2024 05:18 PM | |||
Anonymous
| 09-27-2018 11:36 AM | ||
04-27-2024 07:06 PM | |||
10-29-2024 01:54 AM | |||
Anonymous
| 06-13-2024 02:35 AM |
User | Count |
---|---|
86 | |
72 | |
55 | |
39 | |
38 |
User | Count |
---|---|
95 | |
63 | |
56 | |
48 | |
46 |