Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have a date table that contains these columns:
I use a "Euro Gross Amount" measure in a matrix on Power BI:
I would like to calculate the difference on the Euro Gross between the different years in percentage, I used this formula but it comes out as an "enexpected tuple" error :
DIFF% = DIVIDE(([Euro Gross Amount] - CALCULATE ([Euro Gross Amount], SAMEPERIODLASTYEAR('date'[date])), CALCULATE ([Euro Gross Amount], SAMEPERIODLASTYEAR('date'[date]), 0)
Where does my error come from? Is there a better way to calculate this difference?
Solved! Go to Solution.
Try this:
Try this:
Hello @PC2790 ,
Since this morning I have an error on my measurement "Evo%" which tells me
"MdxScript(Prod_WS_RCE_Order_SKU) (145, 44) Calculation error in measure 'dwh_d_order_sku'[Evo %]: The 'SAMEPERIODLASTYEAR' function expects a contiguous selection when the date column comes from a table on side 1 of a bidirectional relationship. "
Is this normal or should I change something?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |