Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
I have two measures: AUCTION and PURCHASE and I need to count how many times AUCTION is larger than PURCHASE.
Both AUCTION and PURCHASE are coming from a measure calculated like this:
Thanks!
Solved! Go to Solution.
Hi,
Try this measure
=countrows(filter(values(calendar[Dia]),[Auction]>[Purchase]))
Hope this helps.
Hi,
Try this measure
=countrows(filter(values(calendar[Dia]),[Auction]>[Purchase]))
Hope this helps.
HI @Anonymous
Try this:
Measure =
VAR _A =
ADDCOLUMNS (
SUMMARIZE ( Precios, Precios[Dia], "Auc", [AUCTION], "Pur", [PURCHASE] ),
"AA", IF ( [Auc] > [Pur], 1, 0 )
)
RETURN
SUMX ( _A, [AA] )
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn | Twitter | Blog | YouTube
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 29 | |
| 28 | |
| 20 | |
| 20 | |
| 19 |
| User | Count |
|---|---|
| 35 | |
| 28 | |
| 21 | |
| 19 | |
| 17 |