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 all,
In my report, I am using KPI cards to compare Today Vs last year Same day, Week to date Vs Last year same time, Last 4 Vs Same last 4 weeks last year and This year sales Vs Last year sales.
In which, Last 4 weeks comparission, and This year Vs last year working fine.
But when it comes to Today Vs Same day last year sales , It not comparing just showing today's Sales(Picture attached)
and Week to date Vs last year same priod, comparing Current week day to whole week last year, which is not helpingme.
Lastly, KPI card for Gross Margin % compares This year vs last year but in distance its show wrong calculations.
Can any one please help me solove this problem.
Thanks
Mazhar
Solved! Go to Solution.
Hi @Anonymous,
What measure you used in KPI visual, can you please share more detailed information?(e.g. sample data, pbix file, expected result)
In addition, I test with below formula and it works on my side.
Measure = AVERAGE ( 'Table'[Amount] ) - CALCULATE ( AVERAGE ( 'Table'[Amount] ), SAMEPERIODLASTYEAR ( 'Table'[Date] ) )
Reference links:
DAX Time Intelligence Explained
Regards,
Xiaoxin Sheng
Hi @Anonymous,
What measure you used in KPI visual, can you please share more detailed information?(e.g. sample data, pbix file, expected result)
In addition, I test with below formula and it works on my side.
Measure = AVERAGE ( 'Table'[Amount] ) - CALCULATE ( AVERAGE ( 'Table'[Amount] ), SAMEPERIODLASTYEAR ( 'Table'[Date] ) )
Reference links:
DAX Time Intelligence Explained
Regards,
Xiaoxin Sheng
Thanks for your reply, Now I am able to compare Today Vs Last year same day. but my second proble in not solved still.
while comparing Gross Margin Today 25% and Last year same day 29% diffrent should be 4% but it shows -12.38% How can I fix it?
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 |
---|---|
107 | |
99 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |