Forum Discussion
Filter table to show data for current month
- Anonymous3 years ago
Hi PPStar ,
Here are the steps you can follow:
1. Create calculated table.
records = var _table= SUMMARIZE( 'Table','Table'[Create On],'Table'[Number],"Year",YEAR('Table'[Create On]),"Month",MONTH('Table'[Create On])) return FILTER( _table,[Year]=YEAR(TODAY())&&[Month]=MONTH(TODAY()))2. Result:
Does it meet your expected results
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
You can use the FILTER() and SUMMARIZE() functions in DAX to filter your data based on the current year and month. Here's an example of a DAX formula that should do this:
This formula first filters your "Records" table based on the current year and month using the year and month columns in your date table. Then it summarizes the filtered data by counting the number of records for each "Number" value. Finally, it filters the summarized data to only include values with a count greater than zero.
- PPStar3 years agoHelper V
This doesnt work.
FILTER(SUMMARIZE(FILTER(Records, - from here, i am unable to select my date table ?