Forum Discussion
Dynamically filtering rows
- 6 years ago
Hi SandervdM
Add the measure:
Measure = var a = SELECTEDVALUE(Dates[monthName]) Return IF(a = "December"&&"Third row" in VALUES(List1[Description]),0,1)Then drag it to the filter pane with the measure is not 0:
Pbix attached.
- 6 years ago
Almost perfect: now the line "Third Row" is NOT visible when selected December in the slicer. Updated the if statement with a not() and it worked.
Thanks.
Measure = var a = SELECTEDVALUE(Dates[monthName]) Return IF( NOT(a = "December") &&"Third row" in VALUES(List1[Description]),0,1)
ok, thanks for the hint.
Attached a link to a PBIX file with the data
https://1drv.ms/u/s!Ai7aUwtUNnYVmB_RgO20M4wgpe8O?e=v2qZIj
Desired result as displayed in the picture below. When selecting the month of December in the slicer an additional row is displayed.
Hi SandervdM
Add the measure:
Measure = var a = SELECTEDVALUE(Dates[monthName])
Return
IF(a = "December"&&"Third row" in VALUES(List1[Description]),0,1)
Then drag it to the filter pane with the measure is not 0:
Pbix attached.
- SandervdM6 years agoFrequent Visitor
Almost perfect: now the line "Third Row" is NOT visible when selected December in the slicer. Updated the if statement with a not() and it worked.
Thanks.
Measure = var a = SELECTEDVALUE(Dates[monthName]) Return IF( NOT(a = "December") &&"Third row" in VALUES(List1[Description]),0,1)