cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

## How to Calculate with Two Criteria

Hello,

I'm making an ABC analysis report and couldn't show total product number for each group in matrix visual. When I do it for total value of products, it shows correct numbers but for quantity it shows total result for each group.

I guess I should use calculate but I don't how to use it in my case. I created a new measure with calculate function but couldn't figure out how to add two criteria to measure.

I need to show quantity based on group and stock availability. my columns are in same table.

regards

1 ACCEPTED SOLUTION

Hi @calerof,

This if the first time I'm using power bi.

I have several workbooks and I extract data from them via calculated column ( with lookupvalue) to my main table. Then I made some basic math calculations, still with calculated columns. There's no measure in my screenshots,  but when I tried to write the measure so I can post, I figured my mistake.

I didn't add "count" function to my measure, when I added it works.

= CALCULATE(COUNT(Listing[Product]);Listing[Day]="Without Stock")

2 REPLIES 2
Impactful Individual

Hi @jamuka ,

Cheers,

Fernando

Hi @calerof,

This if the first time I'm using power bi.

I have several workbooks and I extract data from them via calculated column ( with lookupvalue) to my main table. Then I made some basic math calculations, still with calculated columns. There's no measure in my screenshots,  but when I tried to write the measure so I can post, I figured my mistake.

I didn't add "count" function to my measure, when I added it works.

= CALCULATE(COUNT(Listing[Product]);Listing[Day]="Without Stock")

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors