This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi All,
Wondering if someone would able to help me with a correct formula to count column Quantity as per table below.
I would like to show quantity of each printer model i KPI card.
Model/Description | Code | Quantity |
eStudio3540cse | MFP-2 | 0 |
eStudio3540cse | MFP-2 | 0 |
eStudio3550cse | MFP-2 | 1 |
eStudio3500se | MFP-2 | 1 |
I'm trying to create a new measure for Quantity column but it doesn't work.
Count MFP = CALCULATE(COUNTA('Printer'[Qty]),'Printer'[Qty]="1"
Expected result of the KPI card should counts only printer with the "1" number.
Thanks for your time.
Solved! Go to Solution.
Hi @Zaky
Create a measure
Measure = CALCULATE(COUNTA(Table1[Model/Description]),FILTER(ALL(Table1),Table1[Quantity]=1))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
can you please try below measure and mark correct if it works.
@Zaky ,
Use this formula
CountQuantity = CALCULATE(COUNTA(Table1[Model/Description]),FILTER(Table1,Table1[Quantity]="1"))
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
However, to eliminate the Zero counts you will need to use the Visualizations Visual Level Filter to eliminate Zero.
Hi,
I'm trying created the measure, but it's not working.
Hi @Zaky
Create a measure
Measure = CALCULATE(COUNTA(Table1[Model/Description]),FILTER(ALL(Table1),Table1[Quantity]=1))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Yes.. got it!. The formula is working as per what i expected.
Thank you so much !
Regards,
ZAKY
Hi,
can you please try below measure and mark correct if it works.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 32 | |
| 25 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 28 | |
| 23 | |
| 23 |