This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. 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.
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 14 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 45 | |
| 38 | |
| 24 | |
| 22 | |
| 20 |