Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Sedos101
Helper I
Helper I

Dynamic Calculation

Hi Everyone

 

I got a bit of a tricky one.

 

I have a table in Power BI that contains a bunch of mining trucks. Each one of those trucks has a payload record for each cycle it does. For example (column for Date, Cycle and Payload):

 

DateCyclePayload
15/5/20221250
15/5/20222260

 

I have a bunch of conditions that I need to rate the payload to (Payload Distribution Index):

 

Sedos101_0-1665242659134.png

The Rated is: 231 tonnes, so 110% is 254.1 tonnes

120% of rated payload is 277.2 tonnes

 

I have set up my powerbi dashboard to have basically 3 slicer filters:

 

1. Date

2. Truck ID

3. Cycle number

 

How do I make a measure that will caclulate the Rating based on what I have selected to view in my slicers?

for example what I have selected below:

 

Sedos101_1-1665242802821.png

 

I basicaly don't know how I can apply the number of cycle payloads to the above conditions to get the rating, like I don't undertand how to write it in DAX (I am assuming it is DAX as it needs to be dynamic).

 

Any help would be greatly appreciated!

 

Thanks

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @Sedos101 ;

I have some confusion about your data scenario and the results you want to output, can you share simple examples and the results you want to output?

please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Stachu
Community Champion
Community Champion

do I understand correctly that you want to show the rating of all the selected payloads together, not the individual payload?
I would start with defining the  criteria in a separate table, something like this:

RatingThresholdUpperExceedMax
A11.101.2
B0.951.101.2
C0.91.101.2
D0.851.101.2
E0.81.10.021.2

and depending on how do you need the calculation later use it to get the rank. I expect some COUNTX to determine which payloads meet the criteria and then comparing it with the criteria table

 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors