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 August 31st. Request your voucher.
Hi All,
I need help in creating a power BI desktop report for comparing data on a line chart based on the selection of year & month (can select multi year(s) & month(s) ) from the slicer and there are a few more slicers (can multi-select the values).
Data is represented on line chart visualization.
Problem Statement: When I am selecting multiple years or months data is summed up in a chart. Need to visualize the comparison between the year or month if multi-selected.
Thanks in advance
@dipanshu_mittal , when you select multiple values, what do you plan to compare with
if you want to compare with last year, you can have a measure like
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))
User | Count |
---|---|
77 | |
76 | |
36 | |
32 | |
29 |
User | Count |
---|---|
93 | |
79 | |
57 | |
48 | |
48 |