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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
VitHorak
Frequent Visitor

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

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

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.