Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi, I am trying to imitate a checklist in a PowerBI visual. I have a list of options and I want all of these options displayed but only a subset of those options highlighted. I think either a table or matrix would work but I have issues with both
Something like this is the desired final outcome
Store | Recipe | Ingredients |
Albany | Chocolate Chunk | Milk (highlighted) |
Chocolate (highlighted) | ||
Sugar (unhighlighted) | ||
Annapolis | Superman | Milk (highlighted) |
Chocolate (unhighlighted) | ||
Sugar (highlighted) |
Table
If I use a table, which is good for conditionally formatting, I run into an issue where I would display the values of Store and Recipe multiple times i.e. Which is not what I want
Store | Recipe | Ingredients |
Albany | Chocolate Chunk | Milk (highlighted) |
Albany | Chocolate Chunk | Chocolate (highlighted) |
Albany | Chocolate Chunk | Sugar (unhighlighted) |
Annapolis | Superman | Milk (highlighted) |
Annapolis | Superman | Chocolate (unhighlighted) |
Annapolis | Superman | Sugar (highlighted) |
Matrix
If I use a matrix, I can get the ingredients all on their own row with the Store and Recipe as merged columns so their values only show once. The issue with a matrix is that you cannot conditionally format rows or columns, only values. I can't make the ingredients a value as those are automatically aggregated so it would only show the first ingredient instead of them all.
My gut says it has to be done in a table but I can't get around the merging cell issue. Any help would be appreciated, I'm pretty new to PowerBI
Solved! Go to Solution.
To create a checklist-like visual in Power BI where you display all options (ingredients) with certain items highlighted, and avoid repeating the Store and Recipe values, you can use a Table visual with measures to simulate merged cells and apply conditional formatting. Here's how you can achieve your desired output:
Steps:
IsFirstRowInGroup =
VAR CurrentStore = 'YourTable'[Store]
VAR CurrentRecipe = 'YourTable'[Recipe]
VAR CurrentRowID = 'YourTable'[RowID]
VAR PreviousRowID = CurrentRowID - 1
VAR PreviousStore = LOOKUPVALUE('YourTable'[Store], 'YourTable'[RowID], PreviousRowID)
VAR PreviousRecipe = LOOKUPVALUE('YourTable'[Recipe], 'YourTable'[RowID], PreviousRowID)
RETURN
IF(
PreviousStore <> CurrentStore || PreviousRecipe <> CurrentRecipe || ISBLANK(PreviousStore),
1,
0
)
StoreDisplay =
IF('YourTable'[IsFirstRowInGroup] = 1, 'YourTable'[Store], BLANK())
RecipeDisplay =
IF('YourTable'[IsFirstRowInGroup] = 1, 'YourTable'[Recipe], BLANK())
Example Output:
StoreDisplay |
RecipeDisplay |
Ingredient |
Albany |
Chocolate Chunk |
Milk (highlighted) |
Chocolate (highlighted) |
||
Sugar |
||
Annapolis |
Superman |
Milk (highlighted) |
Chocolate |
||
Sugar (highlighted) |
Notes:
Conclusion:
Using calculated columns to display group headers only once and applying conditional formatting to the Ingredient column in a table visual allows you to mimic a checklist in Power BI effectively. This method provides a clean and user-friendly display that meets your requirements without the need for complex workarounds or custom visuals.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
To create a checklist-like visual in Power BI where you display all options (ingredients) with certain items highlighted, and avoid repeating the Store and Recipe values, you can use a Table visual with measures to simulate merged cells and apply conditional formatting. Here's how you can achieve your desired output:
Steps:
IsFirstRowInGroup =
VAR CurrentStore = 'YourTable'[Store]
VAR CurrentRecipe = 'YourTable'[Recipe]
VAR CurrentRowID = 'YourTable'[RowID]
VAR PreviousRowID = CurrentRowID - 1
VAR PreviousStore = LOOKUPVALUE('YourTable'[Store], 'YourTable'[RowID], PreviousRowID)
VAR PreviousRecipe = LOOKUPVALUE('YourTable'[Recipe], 'YourTable'[RowID], PreviousRowID)
RETURN
IF(
PreviousStore <> CurrentStore || PreviousRecipe <> CurrentRecipe || ISBLANK(PreviousStore),
1,
0
)
StoreDisplay =
IF('YourTable'[IsFirstRowInGroup] = 1, 'YourTable'[Store], BLANK())
RecipeDisplay =
IF('YourTable'[IsFirstRowInGroup] = 1, 'YourTable'[Recipe], BLANK())
Example Output:
StoreDisplay |
RecipeDisplay |
Ingredient |
Albany |
Chocolate Chunk |
Milk (highlighted) |
Chocolate (highlighted) |
||
Sugar |
||
Annapolis |
Superman |
Milk (highlighted) |
Chocolate |
||
Sugar (highlighted) |
Notes:
Conclusion:
Using calculated columns to display group headers only once and applying conditional formatting to the Ingredient column in a table visual allows you to mimic a checklist in Power BI effectively. This method provides a clean and user-friendly display that meets your requirements without the need for complex workarounds or custom visuals.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
104 | |
69 | |
49 | |
41 | |
34 |
User | Count |
---|---|
164 | |
111 | |
62 | |
53 | |
38 |