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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
VitHorak
Helper I
Helper I

Group jusr part of old dates in matrix

Hi everybody.

 

I will apreciate any help with this probelm.

I have a tabe with SellerName, DateOfSale and SellngPrice to determine which dealer make sum of sales through the time...
These selleres are over of 700 in count. And the DateOfSales beggining in 2006...

 

I need to make an matrix visusal with seller names in rows and purchase dates in columns with sum of sales as values. This looks pretty clear and easy. But.. 🙂

 

Becasue there is many rows and columns in the matrix (I need to have drille down columns to month hierarchy) the matrix just show values only to the some year in past (there is some limitation in power bi to the number of colmns in matrix). If I switch rows and columns it's not help, becasue I have many of seller names as well...

 

TLTR:

Is there any way how to grouped part of dates in columns in matrix? I mean something like the print below. Just to have values over seller names with dates of sale older then two years back grouped in one column? If it can be done dynamicly, it will be perfect but it is not necessary.

 

VitHorak_0-1662985434423.png

 

 

Thanks for any help and tips!!!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@VitHorak , I you calendar have the column like

 

Year new= if([Year] < 2021, [Year]& "", " Old Data")

 

Qtr New= if([Year] < 2021, [Qtr]& "", " Old Data")

 

Month New= if([Year] < 2021, [Month ]& "", " Old Data")

 

and use them . Have space in else name so that they come first in sort

 

or check the hybrid display

 

if you are looking for a Hybrid display with Matrix Column and measure
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...

vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@VitHorak , I you calendar have the column like

 

Year new= if([Year] < 2021, [Year]& "", " Old Data")

 

Qtr New= if([Year] < 2021, [Qtr]& "", " Old Data")

 

Month New= if([Year] < 2021, [Month ]& "", " Old Data")

 

and use them . Have space in else name so that they come first in sort

 

or check the hybrid display

 

if you are looking for a Hybrid display with Matrix Column and measure
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...

vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thanks @amitchandak 
That works perfect!!! I use your tip and add custom columns (year, quarter, month) with text values instead of datetime values and make desired solution. And if I add one more custom column with TodayDate = Today() I will make variable to determine dynamicly "today minus two years" like this:


var _MyDate = DATEADD ( [TodayDate], -2, year)

 

and use it as "decisive" date, it will make what I want dynamicly. Perfect.

 

Thank you very much! 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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