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.
Hi, I am trying to do a matrix, screen shot below
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))
@rydajo96 , 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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |