Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I want to get the number of rows where the offer of a selectedvalue is higher compared to the benchmark "Fozzie Bear".
PBIX:
https://1drv.ms/u/s!AsLM3f2rQCP34xv34CARLr8vZ0bv?e=NNzvVi
For example, if I select "Rizzo the Rat", then Count = 1, since
Project MPS: Fozzie Bear 433,015 > Rizzo the Rat 316,426
Project Disney World: Rizzo the Rat 449,034 > Fozzie Bear 256,240
However, the Measure Count shows
= 2
Any idea what to improve?
Kind regards
Chris
Solved! Go to Solution.
Hi @Chris_23 ,
Please try:
Count =
VAR _a =
SUMMARIZE (
'Table',
'Table'[Job],
'Table'[Vendor],
"Flag",
IF (
SUMX (
FILTER (
ALL ( 'Table' ),
[Job] = EARLIER ( 'Table'[Job] )
&& [Vendor] = "Fozzie Bär"
),
[Offer]
)
< SUM ( 'Table'[Offer] ),
1
)
)
RETURN
IF ( ISFILTERED ( 'Table (2)'[Vendor] ), SUMX ( _a, [Flag] ) )
Output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Chris_23 ,
Please try:
Count =
VAR _a =
SUMMARIZE (
'Table',
'Table'[Job],
'Table'[Vendor],
"Flag",
IF (
SUMX (
FILTER (
ALL ( 'Table' ),
[Job] = EARLIER ( 'Table'[Job] )
&& [Vendor] = "Fozzie Bär"
),
[Offer]
)
< SUM ( 'Table'[Offer] ),
1
)
)
RETURN
IF ( ISFILTERED ( 'Table (2)'[Vendor] ), SUMX ( _a, [Flag] ) )
Output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 73 | |
| 50 | |
| 46 | |
| 44 |