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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors