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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
jerpic
Frequent Visitor

Create a matrix table with different periods.

Hello,

 

I would like to create a matrix table with 3 different periods (M, M-1, N-1) per Row (J and W), like this sample.

 

jerpic_0-1637335927019.png

 

Where M is the current month, M-1 is the previous month and N-1 is the same month last year.

 

For information, I'm able to calculate Measure 1 (M, M-1, N-1) with this kind of calculations (I have a Time table in my model)  : 

 

Measure 1 (M-1) = CALCULATE(SUM('data'[Measure1]),PREVIOUSMONTH('DATE'[Date]))


Measure 2 (M-1) = CALCULATE(SUM('data'[Measure2]),PREVIOUSMONTH('DATE'[Date]))


But with this logic the renderer is different....

 

jerpic_1-1637336429027.png

 

Small precision, in order to select the current year and month I have 2 segments on top of my dashboard, like that: 

 

jerpic_3-1637336710246.png

 

Any help will be very much appreciated.

 

Best Regards,

Jérôme.

 

1 REPLY 1
Anonymous
Not applicable

Hi @jerpic,

Can you please share a pbix or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.