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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Summarise Hourly Values

I have hourly readings as below. 

Barrettone_0-1701277546520.png

When I put them into a table in PowerBI it only gives the first figure from the day:

Barrettone_2-1701277714912.png

 

I need it to aggregate all 24 November 1 values into November 1.

3 REPLIES 3
Anonymous
Not applicable

@Anonymous Thank you for replying,

 

When I put that in, I am unable to choose [date].[day] from my date column. Is that because it is not a date heirarchy? 


DAX is this: 

Gas_Day_Sum = CALCULATE(
     SUM(Gas_Consumption[Reading (kWh)]),
     ALLEXCEPT(Gas_Consumption,Gas_Consumption[Date (Period Beginning)])
   )

Result is this:

Barrettone_0-1701685241061.png

 

Anonymous
Not applicable

Hi @Anonymous ,

You can try to create a Calculated columns.

Best Regards,

Xianda Tang

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

Anonymous
Not applicable

Hi @Anonymous ,

Below is my table:

vxiandatmsft_0-1701653349684.png

The following DAX might work for you:

Measure1 = 
   CALCULATE(
     SUM('Table'[Reading]),
     ALLEXCEPT('Table','Table'[Date].[Day])
   )

The final output is shown in the following figure:

vxiandatmsft_1-1701653423601.png

Best Regards,

Xianda Tang

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.