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
LinoD
Frequent Visitor

Slice Data on Column Headers and Row Headers

Morning Everyone;

 

      New to PowerBI and looking for advice. I have datat set with the first column of data being dates and headers being employee names. The corresponding data is number of sales each sales person booked on the respective day. I'm trying to use this dataset to build visualizations that let us look at an individuals performance over a scalable amount of time and also look at total performance on a given day. Here's a sample dateset:

 

DateEmployee 1Employee 2Employee 3Employee 4Employee 5
2020-01-0129410314762187
2020-01-02235172105142262
2020-01-036128022412458
2020-01-04300108281182258
2020-01-052762928870237
2020-01-0682257297198238
2020-01-0729120525789184
2020-01-08163189277145229

 

So how do I go about setting it up so I can see "Employee 1" performance over a selectable period of time and also the total sales on a given date across all employees?

 

Thanks!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@LinoD , First unpivot this data.

https://radacad.com/pivot-and-unpivot-with-power-bi

 

Then create a date and employee dimension and table and use join them back with your table and then you can filter based on that.

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@LinoD , First unpivot this data.

https://radacad.com/pivot-and-unpivot-with-power-bi

 

Then create a date and employee dimension and table and use join them back with your table and then you can filter based on that.

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

This worked great @amitchandak , thank-you!

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.