Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I wonder if anyone can help.
I am trying to construct a new column. I want it to do:
IF the status is complete AND the BH_c is null then take the median of all the BH's and put it in here
ELSE just use BH_c
I am trying this using the following M code
if List.AllTrue(
{ [Status]="Completed", [BH__c]=null }
) then List.Median({[BH__c]})
else [BH__c]
It is valid but where the status is complete AND the BH is null it displays NULL I think this is becuase it is just looking at the row in question and the median of null is null.
Has anyone got any idea on how to get this to work?
Thanks!
Solved! Go to Solution.
Within the List.Median function, you should have <PreviousStep>[BH_1] instead of {[BH_1]}
Within the List.Median function, you should have <PreviousStep>[BH_1] instead of {[BH_1]}
User | Count |
---|---|
117 | |
73 | |
58 | |
49 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |