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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
Super User
Super User

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 [email protected]

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors