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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
joku50
Frequent Visitor

How to fix 12months in a matrix columns

Hi, 
I have data starting from March but need to fix columns in the table for all 12 months and it should be based on the year selection the user makes. Currently in the matrix column "Date" is selected to show the phasings of data monthly, but based on how earliest the data point is available the table columns(Months) start off from that point on. Is there a way for me to fix in a matrix all the 12 months to be kept as columns for any slicer selections I make?

 

joku50_0-1692858610948.png

 

1 ACCEPTED SOLUTION
JoeBarry
Solution Sage
Solution Sage

Hi @joku50 

 

Can you try activating this part and see if it give yopu the result you need? 

JoeBarry_0-1692859116621.png

You also redo your measure?

 

 

ActualSales =
IF (
    CALCULATE ( SUM ( Sales[Actual] ) ) = BLANK (),
    0,
    CALCULATE ( SUM ( Sales[Actual] ) )
)

 

 

Thanks

Joe

 

If this post helps, then please Accept it as the solution 

View solution in original post

2 REPLIES 2
joku50
Frequent Visitor

@JoeBarry Hey hi - appreciate your quick help! It worked perfectly and I've just learned about the "show items with no data" functionality thank you!!

JoeBarry
Solution Sage
Solution Sage

Hi @joku50 

 

Can you try activating this part and see if it give yopu the result you need? 

JoeBarry_0-1692859116621.png

You also redo your measure?

 

 

ActualSales =
IF (
    CALCULATE ( SUM ( Sales[Actual] ) ) = BLANK (),
    0,
    CALCULATE ( SUM ( Sales[Actual] ) )
)

 

 

Thanks

Joe

 

If this post helps, then please Accept it as the solution 

Helpful resources

Announcements
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.