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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Sar33
New Member

Converting Excel to Power BI

Hello all,

I come to ask in this forum your to find a solution to the adaptation of an excel follow-up of follow-up maintenance of hardware.

The principle is to visualize in graphical form, the downtime between shutdown and back in service of the product.

In addition, we need to be able to know by day/week/month the number of devices shut down and the number in service.

Taking into account the accumulation from day to day/week/month.

I'd like to be able to adapt this calculation in DAX to make it more flexible, with automatically fed dynamic graphs.

Thank you in advance for any help on this subject.

 

Excel.PNG

2 REPLIES 2
Sar33
New Member

First of all, thank you for your help and involvement in this matter.

I have used the files you shared in your response, but I have noticed some discrepancies compared to the expected results.
Indeed, the chart returns data that does not match my initial table (see the screenshot). I have added certain elements for better understanding.
Here are a few examples:
- Week 1: 4 OFF
- Week 2: 4 OFF
- Week 3: 2 OFF

I would like to have a filter on the chart to select specific periods (day/month/year).


If you have the opportunity to work on the file again, I would be greatly appreciative.

 

 

Hardware off.PNG

mickey64
Super User
Super User

Step 0: I use these data below.

mickey64_0-1723123222764.png

 

Step 1: I make a 'Calendar' table.

mickey64_1-1723123324798.png

 

Step 2: I don't add a relationship.

mickey64_2-1723123348620.png

 

Step 3: I make a measure.

M_OFF = COUNTROWS(FILTER(ALL('DATA'),'DATA'[BIS DATE]>=MIN('Calendar'[Date])&&'DATA'[STOP DATE]<=MIN('Calendar'[Date])))

 

Step 4: I make a graph.

mickey64_3-1723123412065.png

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.