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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Period Change Matrix

Hi, I am trying to do a matrix, screen shot below

rydajo96_0-1666105554658.png

The period change is wrong as in 1H 2019 it should be 0%. Is there anyway to fix this?

The total period change is correct but by indiviudal industry is wrong. Please note there is no dates table hence the usual formula doesnt work. I have to use period ID to correspond to respective period e.g. 1H 2019 period ID =1 and so fort. 

 

The formula is as follow:

PERIOD ON PERIOD CHANGES = 
    VAR CurrentPeriod = SELECTEDVALUE('Revenue by Product'[Period ID])
    VAR PreviousPeriod = IF(CurrentPeriod > 1, CurrentPeriod - 1, 1)
    
    VAR CY = [Revenue]
    VAR PY = CALCULATE([Revenue], FILTER(ALLSELECTED('Revenue by Product'),'Revenue by Product'[Period ID]=PreviousPeriod))
    VAR Result = DIVIDE (CY,PY) 
    RETURN (IF(NOT(ISBLANK(Result)) && ISFILTERED('Revenue by Product'[Period]), Result-1))

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , You need to have a period table with Incremental period rank

a new column in the period table

Period Rank = RANKX(all(Period),Period[year period],,ASC,Dense) // or on period start date

 

then your measures can be

 

This Period = CALCULATE(sum('Table'[Qty]), FILTER(ALL(Period),Period[Period Rank]=max(Period[Period Rank])))
Last Period = CALCULATE(sum('Table'[Qty]), FILTER(ALL(Period),Period[Period Rank]=max(Period[Period Rank])-1))

 

diff = [This Period] -[Last Period]

 

Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.