March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have to display current year sales and compare it to last year sales. I created three measures in order to do it:
SalesTotal = SUM( Orders[Sales] )
SalesYTD = TOTALYTD( [SalesTotal] ; 'Date'[Date] )
SalesYTDLastYear = CALCULATE( [SalesYTD]; SAMEPERIODLASTYEAR( 'Date'[Date] ) )
Solved! Go to Solution.
Hi,
My guess is that for Technology, the % in the card visual evaluates to an error. What is the measure for %? Also, what error do you get when you click on Voir Les Details? Share the link from where i can download your PBI file.
Hi,
My guess is that for Technology, the % in the card visual evaluates to an error. What is the measure for %? Also, what error do you get when you click on Voir Les Details? Share the link from where i can download your PBI file.
Thanks, I did not even think of reading the error message:
MdxScript(Model) (18, 60) Calculation error in the measurement'Orders'[ProfitYTDLastYear] : The "SAMEPERIODLASTYEAR" function expects a contiguous selection when the date column comes from a table on side 1 of a bidirectional relationship.
After reading this, I changed the relationship between my tables 'date' and 'orders' as single.
I will search for documentation about "cross-filter direction" (here I found something).
You are welcome.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
126 | |
81 | |
59 | |
57 | |
43 |
User | Count |
---|---|
183 | |
111 | |
82 | |
65 | |
50 |