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 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss 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
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 28 | |
| 23 | |
| 18 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 49 | |
| 44 | |
| 43 | |
| 39 | |
| 32 |