Forum Discussion
Iamrajj
3 years agoFrequent Visitor
Filter not working in DAX
Bandp_Cta TI = CALCULATE(SUM(bnp_cta]),DATESBETWEEN(date,startdate,enddate),ALL(nameplate)) required output
danextian
3 years agoSuper User
Hi Iamrajj ,
Please provide more context to your post. What exactly is not filtering? Which one is your desired output? bnp_cta from nameplate table, etc? Also, please provide a sample data we can easily work on, can be copy-pasted (not an image).
Iamrajj
3 years agoFrequent Visitor
I need to show slicer last month, last week, and YTD dynamic selection.
Created measure for start date and end date for all time intelligence
Bandp_Cta TI = CALCULATE(SUM(bnp_cta]),DATESBETWEEN(date,startdate,enddate),ALL(nameplate))
| nameplate | Bandp_Cta TI |
| Brand Level (Feb23-May23) | 8869 |
| Challenger | 8936 |
| Charger | 8936 |
| Durango | 8936 |
Total 8936
but iam getting total value istead of nameplate breakup.
Output required
| nameplate | Bandp_Cta TI |
| Brand Level (Feb23-May23) | 6968 |
| Challenger | 553 |
| Charger | 976 |
| Durango | 439 |
| Total | 8936 |