Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi there,
I'm looking to find MAX baseline revision no within my data. This is what I have used so far :
Pretend Project column = x
My goal is to find max baseline revision no where cus search = 1.
My calculated column LC Max has this :
However it returns 0 all throughout. Even when I remove Cus search as a column I'm still getting 0 in LC Max. Can anyone recommend anything else in this scenario?
Thanks
Solved! Go to Solution.
Hi @kasiaw29 ,
Based on your description, you can create this measure, put it in the visual filter and set its value as 1:
Measure =
VAR _max =
CALCULATE (
MAX ( 'Table'[Baseline Revision No] ),
ALLEXCEPT ( 'Table', 'Table'[Project] ),
'Table'[Cus Search] = 1
)
VAR _br =
SELECTEDVALUE ( 'Table'[Baseline Revision No] )
RETURN
IF ( _br = _max, 1, 0 )
Attached a sample file in the below, hopes to help you.
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
I have had help on a spanish version of community.
I've changed my LC Max to include following:
@kasiaw29 , try like
Measure =
VAR __id = MAX ( 'Activity History'[Project] )
VAR __dt = CALCULATE ( MAX( 'Activity History'[Baseline Revision No] ), ALLSELECTED ( 'Table' ), 'Table'[Project] = __id )
If( 'Activity History'[Project] = __id, 'Activity History'[Baseline Revision No] = __dt ,1,0 )
@amitchandak Not sure if this is it, please have a look at another sample data.
Highlighted row should be max baseline rev where cus search = 1 and that's the noly result I want to see.
Hi @kasiaw29 ,
Based on your description, you can create this measure, put it in the visual filter and set its value as 1:
Measure =
VAR _max =
CALCULATE (
MAX ( 'Table'[Baseline Revision No] ),
ALLEXCEPT ( 'Table', 'Table'[Project] ),
'Table'[Cus Search] = 1
)
VAR _br =
SELECTEDVALUE ( 'Table'[Baseline Revision No] )
RETURN
IF ( _br = _max, 1, 0 )
Attached a sample file in the below, hopes to help you.
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
I have had help on a spanish version of community.
I've changed my LC Max to include following:
Hi @kasiaw29 ,
If this issue is solved, glad to hear that. You can accept the suitable reply as solution, that way, other community members could easily find the answer when they get same issues.
Best Regards,
Yingjie Li
@kasiaw29 , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
@kasiaw29 This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149
The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.
User | Count |
---|---|
128 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |