Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi Community,
Can you please help me with writng following column formula into DAX measure which can filtered by Years.
Link to File - > https://1drv.ms/u/s!Agarkj-fHbLWjgkn-5Cm64lDbHgU
Many Thanks
C.
@Anonymous ,
//filter by Id and year
CALCULATE( COUNT ('Table'[ID ] ) , ALLEXCEPT( 'Table' ,'Table'[ID], 'Table'[Year] ))
filter only by year
CALCULATE( COUNT ('Table'[ID ] ) , ALLEXCEPT( 'Table' ,'Table'[Year] ))
Filter with all filter // value is at ID level
CALCULATE( COUNT ('Table'[ID ] ) , filter( allselected('Table') ,'Table'[ID] =max('Table'[ID]) ))
Hi @amitchandak , thankyou so much for your help. I have to create categories based on how many products consumed by ID in seletected period. How can I achieve with above mentioned measure. ( the above measure will not be able to apply on axis in visualization pane) .
I tried with column but the problem it it not dymanic. ( i.e. I have either apply filteration of years to see how many have multi or single products users or go without using year filter) . Please suggest best way for it.
I have to create following visual where on axis it shows how many product users are in the data. Also , If I apply year filters I can see how many use one or more than one products in that period.
Again, thankyou so much for your help .
Hi, @Anonymous
Sorry, currently you cannot use the year filter to filter the value of calculated column.
It is recommended to consider calculating the results for these three years separately.
Best Regards,
Community Support Team _ Eason
User | Count |
---|---|
42 | |
28 | |
23 | |
18 | |
15 |
User | Count |
---|---|
54 | |
35 | |
18 | |
17 | |
15 |