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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors