The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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]}
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
115 | |
82 | |
77 | |
48 | |
39 |
User | Count |
---|---|
150 | |
117 | |
67 | |
64 | |
56 |