The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi Guys,
I have created a dashboard where the requirement was to display the last 12 months(using calculation item) on all visualizations after a refresh. I was able to implement the solution and it is working perfectly fine. My Dashboard also consists of a Date slicer which, when selected, the visuals are responsive. However, when the calculation item is set to the last 12 months, I see the last 12 months on all my visuals, but the date slicer wouldn't change. The Date slicer range is set for all time which is functional and I can change my date range accordingly. But when I select the 12 months Calculation item, the date range should be set to 12 months, and Functional to select dates prior to it.
I am trying to fix it, as it looks like a bug to the end user.
Hope I can get help and fix this issue.
@Monteiro8029 , Create a measure that can filter dates and use that visual level filter on date range slicer
In case you are looking for 12 month trend based on selected value. The slicer need to be on an indepedent table
//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = eomonth(_max, -12) +1
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] >=_min && 'Date'[Date] <=_max))
User | Count |
---|---|
65 | |
61 | |
60 | |
53 | |
30 |
User | Count |
---|---|
180 | |
88 | |
71 | |
48 | |
46 |