cancel
Showing results for
Did you mean:

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a \$100 discount. Register Now

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")

Hope this makes sense. Thanks

1 ACCEPTED SOLUTION
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,
DataZoe

See my reports and blog at https://www.datazoepowerbi.com/

3 REPLIES 3
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()))``````
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,
DataZoe

See my reports and blog at https://www.datazoepowerbi.com/

New Member

Worked Perfectly Thanks!

Announcements

#### Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

#### Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

#### Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

#### Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors