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
syuu
Helper I
Helper I

How to display different scale in one matrix visual

Hi,

I have a table which contains week and date (not always the starting day of the week) as below

IDweekdate
001W4287/10
002W4297/15
003W4307/24
004W4317/29


And I have created a matrix, ID as row, week as column, count of ID as value.

IDW428W429W430W431
0011   
002 1  
003  1 
004   1


Now I want the matrix to display part of weeks, and the last week show in date form

IDW428W429W4307/287/297/307/318/18/28/3
001          
...          

 

Is it possible to do? Any answer will be helpful!

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@syuu , First create a date table

DateTable =
ADDCOLUMNS (
CALENDAR (DATE(2022, 7, 1), DATE(2022, 8, 3)),
"Year", YEAR([Date]),
"Month", MONTH([Date]),
"Day", DAY([Date]),
"Week", WEEKNUM([Date], 2) -- Week starts on Monday
)

 

Create relationship with your table using date column

 

Then Create a matrix visual , Drag ID column to Rows, Week column form main table to Columns and ID column to values and set it to count

Drag the Date column from the DateTable to the Columns field in the matrix visual.
Ensure that the Date column is placed after the Week column in the Columns field.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

1 REPLY 1
bhanu_gautam
Super User
Super User

@syuu , First create a date table

DateTable =
ADDCOLUMNS (
CALENDAR (DATE(2022, 7, 1), DATE(2022, 8, 3)),
"Year", YEAR([Date]),
"Month", MONTH([Date]),
"Day", DAY([Date]),
"Week", WEEKNUM([Date], 2) -- Week starts on Monday
)

 

Create relationship with your table using date column

 

Then Create a matrix visual , Drag ID column to Rows, Week column form main table to Columns and ID column to values and set it to count

Drag the Date column from the DateTable to the Columns field in the matrix visual.
Ensure that the Date column is placed after the Week column in the Columns field.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
Europe Fabric Conference

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.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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