Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, I was wondering if it's possible to create a slicer that filters rows if certain column is blank? I think I could make a calculated column by using the "Create column from example" feature, but is there other ways to achieve this?
For example I have this type of data:
Could I create a slicer with two checkboxes "Show completed tasks" and "Show pending tasks", and it would filter the table based on the "Completed on" column? Also both should be allowed to be selected at the same time so that the table shows all tasks.
I actually just tried the "Column from examples" feature to create a "Is complete" column, but it failed to find any transforms.
Solved! Go to Solution.
@JKoivu , best would a calculated column and a slicer on that.
Other option is create a table with thise two values (Enter data) and use the selected value for calculation
measure like
if(selectedvalue(Task[Task value]= "Show completed tasks", calculate(countrows(Table) filter(Table, not(isblank(Table[compeltedOn])))), calculate(countrows(Table) filter(Table, isblank(Table[compeltedOn]))))
In case you want go with column
slicer column = if( isblank(Table[compeltedOn]) , "Show completed tasks", "Show pending tasks")
@JKoivu , best would a calculated column and a slicer on that.
Other option is create a table with thise two values (Enter data) and use the selected value for calculation
measure like
if(selectedvalue(Task[Task value]= "Show completed tasks", calculate(countrows(Table) filter(Table, not(isblank(Table[compeltedOn])))), calculate(countrows(Table) filter(Table, isblank(Table[compeltedOn]))))
In case you want go with column
slicer column = if( isblank(Table[compeltedOn]) , "Show completed tasks", "Show pending tasks")
@JKoivu - Yes, in DAX you could create this column:
Slicer Column =
IF(ISBLANK([Completed on]),"Pending","Completed")
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
116 | |
102 | |
78 | |
77 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |