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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
BlueNoze
New Member

Making a Total of Multiple Columns Using Multiple Filters

Hi All

 

I have tried searching for the answer to this but cant seem to find the answer plus im very new to BI so appareciate your patience.

 

So I needs to add a card visualisation (which i know how to do 🙂 but it needs to calculate the sum of the 3 columns;

 

"HAccountTotal" (When "Hire Status" = "Unpaid") + "RAccountTotal" (When "RepairStatus" = "Unpaid") + "RSTotal" (When "RandSStatus" = "Unpaid")

 

BlueNoze_0-1593510338306.png

Hope this makes sense. Thanks

1 ACCEPTED SOLUTION
DataZoe
Microsoft Employee
Microsoft Employee

Hi @BlueNoze ,

 

Please try this as a measure:

 

YourMeasure =

calculate(sum(TableName[HAccountTotal]),TableName[Hire Status] = "Unpaid")

+ calculate(sum(TableName[RAccountTotal]),TableName[RepairStatus] = "Unpaid")

+ calculate(sum(TableName[RSTotal]),TableName[RandSStatus]= "Unpaid")

Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@BlueNoze , Try like

sumx(Table, switch(true(),Table[Hire Status] = "Unpaid",Table[HAccountTotal],
						Table[RepairStatus] = "Unpaid",Table[RAccountTotal],
						Table[RandSStatus]= "Unpaid" ,Table[RSTotal],blank()))
Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
DataZoe
Microsoft Employee
Microsoft Employee

Hi @BlueNoze ,

 

Please try this as a measure:

 

YourMeasure =

calculate(sum(TableName[HAccountTotal]),TableName[Hire Status] = "Unpaid")

+ calculate(sum(TableName[RAccountTotal]),TableName[RepairStatus] = "Unpaid")

+ calculate(sum(TableName[RSTotal]),TableName[RandSStatus]= "Unpaid")

Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

Worked Perfectly Thanks!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.