Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |