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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
chrisw888
Frequent Visitor

Return 1 instance of maximum power per outlet

Hi

 

Would anyone be able to point me in the right direction of what DAX function i could use to get around the below issue?

 

I have a rows and rows of data for sites that I have charging outlets. My issue is I could have one site (each site has a unique identifier) that can deliver say 100kwh in the day as its maximum output, and each day could vary as to how many sessions I have and how much of this 100kwh I have been able to supply. I am therefore trying to calculate a utilisation %, depending on whether I have delivered 10kwh, 20kwh, 25kwh or whatever value I delivered that day of my total 100kwh.

 

The problem I have is I am struggling to write my dax that counts the energy I delivered, and divide it by the total of 100kwh, instead I only ever appear to be able to return for example, my energy, divided by 500kwh, if i had 5 sessions that day, or 600kwh if i had 6 sessions, and so on.

 

Its something probably simple to someone with DAX experience, but I am bit stuck with it.

 

Thanks

 

1 ACCEPTED SOLUTION
Manoj_Nair
Solution Supplier
Solution Supplier

@chrisw888- Check this out, let me know if this works.

Utilization % = 
    VAR TotalEnergyDelivered = SUM('Table'[EnergyDelivered])
    VAR MaxOutput = 100
    RETURN DIVIDE(TotalEnergyDelivered, MaxOutput)

If you use this measure in a table with a row for each day, it will calculate the utilization percentage for each day. If you use this measure in a card visual, it will calculate the overall utilization percentage for all days.

 

I've hypothetically established this DAX measure, but without much clarity regarding your datasets. If this doesn't serve your needs, I recommend you share a sample dataset. This will give me a more comprehensive understanding of your data structure, enabling me to devise a more suitable solution. Cheers

View solution in original post

4 REPLIES 4
Manoj_Nair
Solution Supplier
Solution Supplier

@chrisw888- Check this out, let me know if this works.

Utilization % = 
    VAR TotalEnergyDelivered = SUM('Table'[EnergyDelivered])
    VAR MaxOutput = 100
    RETURN DIVIDE(TotalEnergyDelivered, MaxOutput)

If you use this measure in a table with a row for each day, it will calculate the utilization percentage for each day. If you use this measure in a card visual, it will calculate the overall utilization percentage for all days.

 

I've hypothetically established this DAX measure, but without much clarity regarding your datasets. If this doesn't serve your needs, I recommend you share a sample dataset. This will give me a more comprehensive understanding of your data structure, enabling me to devise a more suitable solution. Cheers

Hi

 

I was able to adapt your DAX and have now got myself sorted, thank you so much for your help. Now just need to figure out how to use the same and visualise it as a monthly average for each charger power

Hi,

 

Thanks for coming back to me, and this looks close to what I need. Below is some sample data (sorry it wont let me attach a file), but as a guide, the 50 on the 17/3 sees a utilisation of 5.48%, being 20.336+37.351+8.026 divided by the 50 *24 hours.

This is my data  For Ref
           5022  
DatePeriodYearMonthkwh delivered Power charger   Daily Power AvailableUtilisation %  
17/03/20232023/032023Mar20.336501   12005.48%   
17/03/20232023/032023Mar37.351501   1200    
17/03/20232023/032023Mar8.026501   1200    
16/03/20232023/032023Mar28.013501   12004.72%0.80%  
16/03/20232023/032023Mar25.471501   1200    
16/03/20232023/032023Mar4.2222   528    
16/03/20232023/032023Mar3.161501   1200    
15/03/20232023/032023Mar44.261501   12005.13%2.56%  
15/03/20232023/032023Mar4.5222   528    
15/03/20232023/032023Mar9222   528    
15/03/20232023/032023Mar17.329501   1200    
14/03/20232023/032023Mar6.877501   12007.88%6.36%  
14/03/20232023/032023Mar26.476501   1200    
14/03/20232023/032023Mar18.6222   528    
14/03/20232023/032023Mar15222   528    
14/03/20232023/032023Mar4.61501   1200    
14/03/20232023/032023Mar25.13501   1200    
14/03/20232023/032023Mar21.848501   1200    
14/03/20232023/032023Mar9.626501   1200    
some_bih
Super User
Super User

Hi @chrisw888 for some reasonobal dax / other solution the model with column is needed with example of data.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.