Forum Discussion
Date filtering
- 4 years ago
Hi,
Please check the attached file.
I changed a relationship type.
Name measure: = CALCULATE ( SELECTEDVALUE ( data[name] ), FILTER ( data, data[date] < MAX ( 'Calendar'[date] ) ) )
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
I tried to create a sample pbix file.
One of ways to solve this is to have disconnected calendar table.
Sales total: =
CALCULATE (
SUM ( Data[Sales] ),
FILTER ( 'Calendar', 'Calendar'[Date] < MAX ( 'Calendar slicer'[Date] ) )
)
- Anonymous4 years agoNot applicable
Thank you for your help!
I just had a query, for the "Sales Total:" DAX command, how would that be altered if there wasn't anything to sum up. For example, if the chart was composed of peoples' name, date of birth or other values that are unable to be summed?- Jihwan_Kim4 years agoSuper User
Hi,
Thank you for your feedback.
I think you can use other function, instead of SUM, for instance, selectedvalue / min / max / and so forth.
Please share your sample pbix file, and then more accurate solution can be written.
Thanks.
- Anonymous4 years agoNot applicable
Hi,
I attached a sample file. I am having trouble replicating the solution you made.
I appreciate the help, let me know if you have trouble accessing anything.
Thank you!
https://drive.google.com/file/d/1gNgU38EX6l7EDIuCryQm9bVyBxobe-Z8/view?usp=sharing