Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have an existing table that has a date filter that I have set up manually.
What I want to do is pass a value from a custom measure ( a single month number of 1 or 2 etc up to 12 )
to the existing filter thats on the table.
When I run the performance analyzer, I can see the date value in the DAX code for the table :
Solved! Go to Solution.
You could create a calculation group to apply the filter. Create a couple of calculation items like
No Change = SELECTEDMEASURE()
and
Add custom filter =
CALCULATE (
SELECTEDMEASURE (),
TREATAS ( { DATE ( 2024, [Custom_month], 1 ) }, 'Calendar'[month] )
)
Then add the calculation group as a filter on the visuals you want to be affected, and choose "Add custom filter" as the only value.
With regards to DAX in DAX Query View, the query will be stored whenever you save the file. If you publish it to the service and then subsequently download it, the query will still be available.
Hi @wokka,
We haven’t heard back from you regarding your issue. If it has been resolved, please mark the helpful response as the solution and give a ‘Kudos’ to assist others. If you still need support, let us know.
Thank you.
Hi @wokka,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @wokka,
I wanted to check if you had the opportunity to review the information provided by @johnt75 . Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
You could create a calculation group to apply the filter. Create a couple of calculation items like
No Change = SELECTEDMEASURE()
and
Add custom filter =
CALCULATE (
SELECTEDMEASURE (),
TREATAS ( { DATE ( 2024, [Custom_month], 1 ) }, 'Calendar'[month] )
)
Then add the calculation group as a filter on the visuals you want to be affected, and choose "Add custom filter" as the only value.
With regards to DAX in DAX Query View, the query will be stored whenever you save the file. If you publish it to the service and then subsequently download it, the query will still be available.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
14 | |
12 | |
11 | |
10 | |
9 |