Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
newbie here need help.
i found a solution based from this video: https://www.youtube.com/watch?v=QPVSxxoN5sg, about using two slicers as input. my org requires users to select custom dates:
the line chart works great for the sales and plan (based on Timeframe dates) but Comparison Sales (based on versus Timeframe) is incorrect and overstated.
Total Sales: $42m
Total Plan: $44m
Comparison Sales: $347m (??? not right)
measure:
Comparison Sales =
CALCULATE(
SUM(SALES_SUMMARY[SALES]), ALL(CALENDAR), USERELATIONSHIP(SALES_SUMMARY[DATE],'COMPARISON CALENDAR'[DATE])
)
thank you!
@mgtulips , if you have these dates you can have 2 lines, not one overlapping.
Both need to independent Date table slicer and you can have two measures like
//Date1 is independent Date table and Date is Joined
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] >=_min && 'Date'[Date] <=_max))
//Date2 is independent Date table and Date is Joined
new measure 2 =
var _max = maxx(allselected(Date2),Date2[Date])
var _min = minx(allselected(Date2),Date2[Date])
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] >=_min && 'Date'[Date] <=_max))
Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI
Power BI How to use/compare two Date/Period slicers: https://youtu.be/WSeZr_-MiTg
thank you for the immediate response.
i took the file from one of the videos and was able to replicate the issue i described.
can you take a look at it?
range2 seem to be adding all the months, instead of breaking it down by day
I would include the pbix, i cant find the option to do that.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
71 | |
70 | |
38 | |
28 | |
26 |
User | Count |
---|---|
97 | |
88 | |
59 | |
43 | |
40 |