Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi There All,
I just started with Power BI today, love it!
My attached workbook has five (!) measures, that I would appreciate some guidance with?
The calculation logic for each is as follows, I just don’t know how to compile the required syntax,
Calculation Logic,
IF ([Responsibility]="Electrical" OR [Responsibility]="Mechanical")
AND [Scheduled]="Y"
THEN [Total Down Time (hrs)]
END
Calculation Logic,
IF ([Responsibility]="Electrical" OR [Responsibility]="Mechanical")
AND [Scheduled]="N"
THEN [Total Down Time (hrs)]
END
Calculation Logic,
IF ([Responsibility]="Operational")
AND [Scheduled]="Y"
THEN [Total Down Time (hrs)]
END
Calculation Logic,
IF ([Responsibility]="Operational")
AND [Scheduled]="N"
THEN [Total Down Time (hrs)]
END
Calculation Logic,
I need a parameter that will enable me to filter, and represent only the “Top5” incurred delays by duration?
Here is the shared LINK to my model,
Any assistance will be most appreciated,
Cheers,
Lance
Solved! Go to Solution.
Hi Lance_CM,
Try DAX formula like this and check if they can meet your requirement:
_Scheduled Maint Delay (hrs) = IF ((MAX('G1-Axz'[Responsibility]) = "Electrical" || MAX('G1-Axz'[Responsibility]) = "Mechanical") && MAX('G1-Axz'[Scheduled]) = "Y", MAX('G1-Axz'[Total Down Time (hrs)])) _Unscheduled Maint Delay (hrs) = IF ((MAX('G1-Axz'[Responsibility]) = "Electrical" || MAX('G1-Axz'[Responsibility]) = "Mechanical") && MAX('G1-Axz'[Scheduled]) = "N", MAX('G1-Axz'[Total Down Time (hrs)])) _Scheduled Ops Delay (hrs) = IF (MAX('G1-Axz'[Responsibility]) = "Operational" && MAX('G1-Axz'[Scheduled]) = "Y", MAX('G1-Axz'[Total Down Time (hrs)])) _Unscheduled Ops Delay (hrs) = IF (MAX('G1-Axz'[Responsibility]) = "Operational" && MAX('G1-Axz'[Scheduled]) = "N", MAX('G1-Axz'[Total Down Time (hrs)]))
In addtion, you can use visual level filter to filter Top5 values in any of your column with using any parameter, please refer to:
Best Regards,
Jimmy Tao
Hi Lance_CM,
Try DAX formula like this and check if they can meet your requirement:
_Scheduled Maint Delay (hrs) = IF ((MAX('G1-Axz'[Responsibility]) = "Electrical" || MAX('G1-Axz'[Responsibility]) = "Mechanical") && MAX('G1-Axz'[Scheduled]) = "Y", MAX('G1-Axz'[Total Down Time (hrs)])) _Unscheduled Maint Delay (hrs) = IF ((MAX('G1-Axz'[Responsibility]) = "Electrical" || MAX('G1-Axz'[Responsibility]) = "Mechanical") && MAX('G1-Axz'[Scheduled]) = "N", MAX('G1-Axz'[Total Down Time (hrs)])) _Scheduled Ops Delay (hrs) = IF (MAX('G1-Axz'[Responsibility]) = "Operational" && MAX('G1-Axz'[Scheduled]) = "Y", MAX('G1-Axz'[Total Down Time (hrs)])) _Unscheduled Ops Delay (hrs) = IF (MAX('G1-Axz'[Responsibility]) = "Operational" && MAX('G1-Axz'[Scheduled]) = "N", MAX('G1-Axz'[Total Down Time (hrs)]))
In addtion, you can use visual level filter to filter Top5 values in any of your column with using any parameter, please refer to:
Best Regards,
Jimmy Tao
Hi Jimmy,
Appreciate the support mate!
I had a go at introducing the proposed DAX formula without any luck, I get “blank” results for all four measures.
To get the formula logic sorted, can I ask that we please only focus on the following:
I analysed the raw data outside power bi and determined the following:
Any additional corrective actions you can suggest will be welcome?
Cheers,
Lance
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |