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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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