The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello,
I am creating a matrix to show a breakdown of orders and the YOY completion percentage of this year compared to last year.
The YOY calculation is a measure defined as follows:
Solved! Go to Solution.
How about this instead?
YOY =
VAR RowYear = MAX( Query2[YEAR] )
RETURN
DIVIDE (
SUM ( Query2[ORDERS] ),
CALCULATE ( SUM ( Query2[ORDERS] ), Query2[ORDERS] = RowYear - 1 )
)
How about this instead?
YOY =
VAR RowYear = MAX( Query2[YEAR] )
RETURN
DIVIDE (
SUM ( Query2[ORDERS] ),
CALCULATE ( SUM ( Query2[ORDERS] ), Query2[ORDERS] = RowYear - 1 )
)
User | Count |
---|---|
86 | |
84 | |
35 | |
35 | |
35 |
User | Count |
---|---|
94 | |
79 | |
63 | |
55 | |
52 |