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

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.

Reply
DanSan
Regular Visitor

Power BI Report over hour

Dear Community,

 

I am new to Power BI and DAX but I need to ask "new guy question" to deal with my problem. I am dealing with a huge database where i need to force one table to get average values over specific time periods. Like below example shows. I am new to DAX and so far I couldn't find my way over it with simple mesure. For the moment I filter results directly in table - but this require additional relation table, not really efficient way. 

 

Usage Over Hours.jpg

 

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @DanSan,

 

Add a calculated column in above table.

Time period =
IF ( Test_2[Time 24h range] >= 1 && Test_2[Time 24h range] <= 3, "1-3", "4-6" )

Then, use a Matrix visual and column chart visual to host data. Rememer to select "Average" aggregation for value field.

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @DanSan,

 

Add a calculated column in above table.

Time period =
IF ( Test_2[Time 24h range] >= 1 && Test_2[Time 24h range] <= 3, "1-3", "4-6" )

Then, use a Matrix visual and column chart visual to host data. Rememer to select "Average" aggregation for value field.

1.PNG

 

Best regards,

Yuliana Gu

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

Thank you very much for help!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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