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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a table that has columns that are boolean and I would like to count each of these columns and compare them in a bar graph. My data is structured like this:
| Date | UserID | Column A | Column B | Column C |
| 1/1/2020 | 0001 | TRUE | TRUE | TRUE |
| 1/2/2020 | 0002 | TRUE | FALSE | TRUE |
| 1/3/2020 | 0003 | TRUE | TRUE | FALSE |
| 1/4/2020 | 0004 | FALSE | FALSE | TRUE |
| 1/5/2020 | 0005 | FALSE | TRUE | TRUE |
I want the graph to look like this photo.
It doesn't seem like it should be impossible to do, but when I try to make the graph, I just get one bar of true or false. Do I need to get a custom visualization or is this impossible?
Solved! Go to Solution.
Hi @alietzau
you could unpivot the columns with Power Query
You may download my PBIX file from here.
Hope this helps.
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
HI @alietzau ,
If you did not want to change your table structure in query editor, you can refer to following formula to create a calculated column to store expand table records from the original table, then you can use new table fields to create charts:
Table =
SELECTCOLUMNS (
UNION (
SUMMARIZE (
Original,
Original[Date],
Original[UserID],
Original[Column A],
"CType", "Column A"
),
SUMMARIZE (
Original,
Original[Date],
Original[UserID],
Original[Column B],
"CType", "Column B"
),
SUMMARIZE (
Original,
Original[Date],
Original[UserID],
Original[Column C],
"CType", "Column C"
)
),
"Date", [Date],
"UserID", [UserID],
"CType", [CType],
"CValue", [Column A]
)
Regards,
Xiaoxin Sheng
HI @alietzau ,
If you did not want to change your table structure in query editor, you can refer to following formula to create a calculated column to store expand table records from the original table, then you can use new table fields to create charts:
Table =
SELECTCOLUMNS (
UNION (
SUMMARIZE (
Original,
Original[Date],
Original[UserID],
Original[Column A],
"CType", "Column A"
),
SUMMARIZE (
Original,
Original[Date],
Original[UserID],
Original[Column B],
"CType", "Column B"
),
SUMMARIZE (
Original,
Original[Date],
Original[UserID],
Original[Column C],
"CType", "Column C"
)
),
"Date", [Date],
"UserID", [UserID],
"CType", [CType],
"CValue", [Column A]
)
Regards,
Xiaoxin Sheng
Hi @alietzau
you could unpivot the columns with Power Query
You may download my PBIX file from here.
Hope this helps.
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 62 | |
| 50 | |
| 45 |