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
Dallas7890
Resolver I
Resolver I

Trying to calculate in DAX the Perfect system availability in Seconds and Percentage

Hello 

I am new to DAX, and I'm trying to figure out the monthly percentage for our 8 systems if they were to run perfectly in the month. In Excel it's the number of days in the month since we installed the system to the current date. 
157 = Sum of the Days column

Dallas7890_1-1677853395462.png

 

13564800 = seconds/day/network feed

Dallas7890_3-1677853546787.png

 

108518400 = This is the Perfect Seconds for the total of 8 Network feeds

Dallas7890_4-1677853628083.png

or
108518400 

Dallas7890_6-1677853801657.png

 

 

 

Dallas7890_2-1677853440254.png

 

Dallas7890_0-1677853262743.png

 

 

I have a table in my PBI report called WebOps Discrepancies

Dallas7890_7-1677853992908.png

 

 

Any help would be greatly appreciated.



1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Dallas7890 ,

In the Power BI, you can try to use:

column_day_each month
                     =eomonth(table[date],0)
sec/day/network feed measure=var _1=max(table[sec/day/network feed])
return
if(isinacope(table[date}),_1,sumx(all(table),table[sec/day/network feed]))

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Dallas7890 ,

In the Power BI, you can try to use:

column_day_each month
                     =eomonth(table[date],0)
sec/day/network feed measure=var _1=max(table[sec/day/network feed])
return
if(isinacope(table[date}),_1,sumx(all(table),table[sec/day/network feed]))

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.