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.
I have a power BI table of Late vs. On-time Shipments. I'd like to calculate the TOTAL OnTime finalPercent which would be the TOTAL OnTime Shipments/(TOTAL Late + OnTime Shipments). It calculates fine by row, but it will not do the TOTALS (i.e. 105/134). I can only Sum, Don't Sum(as shown below), Average, etc.. Is there a way to get what I want within this table where "NEED % HERE" is? There are more complexities with dates and such, but this is the jist of what I'm looking for. Thanks!
Date | Late Shipments | OnTime Shipments | Late+OnTime Shipments | Final Percentage |
6/3/2019 | 17 | 31 | 48 | 64.58% |
6/4/2019 | 5 | 33 | 38 | 86.84% |
6/5/2019 | 7 | 41 | 48 | 85.42% |
TOTAL | 29 | 105 | 134 | NEED % HERE |
Solved! Go to Solution.
Hi @mberkebile
You may create a measure like below.PS:Change 'Data' to your table name.
Percent = SUM(Data[OnTime Shipments])/(SUM(Data[Late Shipments])+SUM(Data[OnTime Shipments]))
Regards,
Hi @mberkebile
You may create a measure like below.PS:Change 'Data' to your table name.
Percent = SUM(Data[OnTime Shipments])/(SUM(Data[Late Shipments])+SUM(Data[OnTime Shipments]))
Regards,
Thank you so much!! I swear I tried this combination, but I think my brain was foggy and I missed trying this measure! 🙂
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 |
---|---|
117 | |
104 | |
77 | |
73 | |
50 |
User | Count |
---|---|
145 | |
109 | |
108 | |
90 | |
64 |