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
I have been replicating a retired excel KPI pack within Power BI and have come across something I need help with.
The KPI pack relates to shipping and includes delays in the door to door shipping process broken out into the following elements.
1) Days Late at Origin Delivery
2) Days Late During Origin Consolidation
3) Days Late During Vessel at Sea
4) Days Late During Delivery to DC
In the dataset, I have some calculations which determines where the biggest delay is happening and I need to return the description as listed above for those delays.
I have created a DAX measure which does this for me as follows...
This works, except I have an issue if the biggest delay is the same for 2 of the reasons...example as follows...
Days Late at Origin Delivery = 4 days
Days Late During Origin Consolidation = 2 days
Days Late During Vessel at Sea = 4 days
Days Late During Delivery to DC = 1 day
In this case, PowerBi does not know how to handle the fact there are 2 highest reasons and returns a blank instead.
Any ideas on how I can fix this? I'm happy for any method to be used to decide on a reason code (sort alphabetically maybe) as long as I get a reason instead of a blank.
Many thanks in advance
@AntWickenden , My advice would be to create Rank or TOPN and use them as a visual level filter or use the Index function.
In the above case also create a count measure and plot with Delay Reason
TOPN: https://youtu.be/QIVEFp-QiOk
TOPN with Numeric Parameter -https://youtu.be/cN8AO3_vmlY?t=26448
Power BI Index function: Top/Bottom Performer by name and value- https://youtu.be/HPhzzCwe10U
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.
User | Count |
---|---|
113 | |
81 | |
72 | |
49 | |
41 |
User | Count |
---|---|
139 | |
119 | |
74 | |
64 | |
63 |