Forum Discussion
Anonymous
3 years agoNot applicable
COUNT Difference between two measures
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!
Hi,
Try this measure
=countrows(filter(values(calendar[Dia]),[Auction]>[Purchase]))
Hope this helps.
2 Replies
- VahidDMSuper User
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
- Ashish_MathurSuper User
Hi,
Try this measure
=countrows(filter(values(calendar[Dia]),[Auction]>[Purchase]))
Hope this helps.