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.
hi everyone, i need your help with this dynamic filter that i cant seem to find a solution for...
how do i get the difference of the quantity between the 2 period that i selected from the filter? the quantity is the one in millions btw. thanks in advance! would really appreciate it
You are probably looking for a slightly different version:
Measure =
VAR MaxDate = MAX(ALLSELECTED ('Date'[Date]))
Var MinDate = MIN(ALLSELECTED ('Date'[Date]))
Return
CALCULATE( [your original measure], filter (all(date), date > mindate && date < maxdate))
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
Hi,
Try this measure!
Measure =
VAR MaxDate = MAX('Date'[Date])
Var MinDate = MIN('Date'[Date])
Return
CALCULATE(
DATEDIFF(MinDate,MaxDate,DAY),
Products
)
Actually, I think Allselected() would probably be a better filter than the table name.
Hope that helps you!
~Kim
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
13 | |
11 | |
9 | |
6 |