Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
T_von_Axt
Helper I
Helper I

How to create a table with calculations

Hello,

 

I am currently having trouble with implementing a solution that checks if certain columns are either 0 or 1 and create a table where rows are the sum of the number of lines with 1 for each column. Something like this:

 

Id Error1 Error2 Error3 

 

The result column should be:

 

Error Count 
Error1 
Error2 
Error3 

 

I also need it to be possible, that if I click a row in the second table, it will filter the other tables to show only entries with the Ids that contain that error.

 

Is it possible to do something like this in Power BI?

Thank you in advance.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@T_von_Axt , Unpivot the error columns in power query then you can do a simple sum

 

Or

 

in matrix visual put them in values, and enable show on row

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
T_von_Axt
Helper I
Helper I

Thank you. It worked perfectly 🙂

amitchandak
Super User
Super User

@T_von_Axt , Unpivot the error columns in power query then you can do a simple sum

 

Or

 

in matrix visual put them in values, and enable show on row

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors