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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Savita_Mishra
New Member

undefined

  • Row level last 4 quarters and last 4 months side by side in power bi Matrix on dynamic 
  • Like
  • 2021
  • Q1
  • Q2
  • Q3
  • Q4
  • 2022
  • Q1
  • Q2
  • Q3
  • Q4
  • 2023
  • Q1
  • Q2
  • Q3
  • April
  • May
  • June 
1 REPLY 1
SamInogic
Solution Sage
Solution Sage

Hi @Savita_Mishra ,

I am bit unclear with exact output, if the expected output is below then you can follow provided steps:

SamInogic_0-1692615739385.png


Create a Table with below DAX expression:

CalendarData = CALENDAR(DATE(2021,1,1),DATE(2025,1,1))

 

Create a column “Quarter” with below DAX expression,

Quarter =

var result = SWITCH(CalendarData[Date].[QuarterNo],1,"Qtr 4",2,"Qtr 1",3,"Qtr 2",4,"Qtr 3")

return result

 

Create a Column “Month of Fiscal” with below DAX expression,

Month of Fiscal =

var NMonth = CalendarData[Date].[MonthNo]

var monthNo = IF(NMonth>=4 && NMonth <=12, NMonth-3,NMonth+9)

return SWITCH(monthNo,1,"April",2,"May",3,"June",4,"July",5,"August",6,"September",7,"October",8,"November",9,"December",10,"January",11,"February",12,"March")


Now use Matrix to display these columns as shown in below screenshot,

SamInogic_1-1692615761890.png

 

Let me know if your requirement is different from this.

Thanks!

 

Inogic Professional Services Division

Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

Drop an email at crm@inogic.com

Services:  http://www.inogic.com/services/

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.