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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
kargus
New Member

Chart for Hourly Data

Hello i have hourly data where each hour (1-24) of a day is stored in a separate column of the table.

kargus_0-1642177527148.png

 

How do I display this in a visual or table (example shown below) to show a total hourly by rate class (rate class is in another dimension)?  So I want to see January 4, 2020, hours 1 thru 24 and their totals by hour per rate class.  Is this possible with this table structure?

 

                                                       

  Rate Class 1 Rate Class 2 
Jan 4, 2020Hour 1300150 
Jan 4, 2020Hour 2500600 
1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @kargus ,

According to your description, I create a sample. Here are two tables.

vkalyjmsft_0-1642485147386.png

vkalyjmsft_1-1642485165795.png

Here's my solution.

1.Select all hours at the same time(Ctrl +select), then click Unpivot Columns tab under the Transform ribbon.

vkalyjmsft_3-1642485493319.png

Get the table below.

vkalyjmsft_4-1642485686022.png

2.Create relationship between the two tables by the column Service Rate ID.

vkalyjmsft_5-1642486143760.png

3.In the matrix visual, put Read Date and Hour Name in rows, Rate Class in columna and Value in values, get the expected result.

vkalyjmsft_6-1642486342237.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

 

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-yanjiang-msft
Community Support
Community Support

Hi @kargus ,

According to your description, I create a sample. Here are two tables.

vkalyjmsft_0-1642485147386.png

vkalyjmsft_1-1642485165795.png

Here's my solution.

1.Select all hours at the same time(Ctrl +select), then click Unpivot Columns tab under the Transform ribbon.

vkalyjmsft_3-1642485493319.png

Get the table below.

vkalyjmsft_4-1642485686022.png

2.Create relationship between the two tables by the column Service Rate ID.

vkalyjmsft_5-1642486143760.png

3.In the matrix visual, put Read Date and Hour Name in rows, Rate Class in columna and Value in values, get the expected result.

vkalyjmsft_6-1642486342237.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

 

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

 

smpa01
Super User
Super User

@kargus  unpivoting the data is the first step

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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