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
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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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