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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
DeBIe
Post Partisan
Post Partisan

How to use months as columns (fast way)

Hey All,

 

I would like to create a table visual with sold products by month per product. I did this for the quarters with this measure:

Total Products Sold Qtr1 2020 = CALCULATE([Total Products Sold],Table[Quarter]=1). That gave me this correct result:

 

qtrs.png

 

Now I would like to do the same for each month, but is there a faster way than writing this measure 12 times every month? And what about next year, do I have to do the same, except I have to add the year 2021? There's probably a way to make that dynamic as well.

 

Thanks for your time!

1 ACCEPTED SOLUTION
manikumar34
Solution Sage
Solution Sage

@DeBIe , 

 

if you are trying create the same visual, use Matrix visual with conditional formatting and on column place you month and in values Total Products Sold. 

Here we don't need to write measure.

 

Regards, 

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




View solution in original post

2 REPLIES 2
manikumar34
Solution Sage
Solution Sage

@DeBIe , 

 

if you are trying create the same visual, use Matrix visual with conditional formatting and on column place you month and in values Total Products Sold. 

Here we don't need to write measure.

 

Regards, 

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




nvprasad
Solution Sage
Solution Sage

Hi,

 

You can create a calendar table and establish a relationship with the fact table (sales table). Then use Calander table columns either month or quarter in the visual by using a single sum(solidity) measure.

 

Appreciate a Kudos! 🙂
If this helps and resolves the issue, please mark it as a Solution! 🙂

Regards,
N V Durga Prasad

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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