cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous
Not applicable

How to Summarise tables by month and name?

I have a table with 4 columns: Name, Hours spent, Date and Location. 

 

There can be multiple entries for the same name

 

I want to summarise the table by adding the amount of hours spent by a person in a given month and in a given year. How dothat? I have used the sumarise column to add it up by name but would need to display this information on a month and year basis.

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check a below pictuure and the attached pbix file.

If you turn on the option - Auto Date/Time, the aggregation will be automatically done.

 

Picture2.png

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


jdbuchanan71
Super User
Super User

You should create a dedicated calendar table in your model then hook that to your fact table.  Then you can use the month / year from the calendar table and the names from your fact table to do the summary you are looking for.  Take a look at this article about how to make a calendar table.

https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors