Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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.
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! | |
@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
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! | |
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 112 | |
| 108 | |
| 39 | |
| 34 | |
| 27 |