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,
PFB a measure.
Measure = CALCULATE (
Solved! Go to Solution.
Not Excatly according to the need.
Only returning value for current year i.e 2019 , returns a numeric value.
I tried using SAMEPERIODLASTYEAR and that seems to work fine.
Thanks ,
@Anonymous ,
The date value in Year column is month, not year, right? To be general, you may also try measure below:
Measure = CALCULATE ( COUNTROWS ( 'TableName' ), FILTER ( 'TableName', 'TableName'[Column Name x ] = "Yes" ), DATEADD ( 'TableName'[Year], -12, MONTH ) )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous Try creating a measure like this:
CALCULATE(DISTINCTCOUNT(<UNIQUE ROW IDENTIFIER>), FILTER('TableName', 'TableName'[Column Name x ] = "Yes")), FILTER(TableName, TableName[Date]>=DATEADD(TableName[Date],-1,year)))
Hi,
Thanks for the suggestion , but the measure returns Blank if I select any date in slicer which does not lie in 2019.
It returns data for only values of 2019, wheres I have data for last 10 years
@Anonymousjust to make sure my formula also didnt work?
Not Excatly according to the need.
Only returning value for current year i.e 2019 , returns a numeric value.
I tried using SAMEPERIODLASTYEAR and that seems to work fine.
Thanks ,
@Anonymous ,
Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.
Regards,
Jimmy Tao
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 |
---|---|
112 | |
99 | |
73 | |
72 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |