Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I need to show a drop down between a date range on a dimension called 'Service Cateory' and I have created a measure for that:
Hi @Anonymous ,
Actually, it is not hard to use a measure to filter a table, you can create a measure using the following DAX query:
Service Cat List = IF( MIN(Data[Creation Date])>=Data[From Date] && MIN(Data[Creation Date])<=Data[To Date] ),1,0)
Then we can use this measure as a filter and set the value >= 1, then all measure <1 will be filtered out.
Best Regards,
Teige
Hi,
I have created a measure :
@Anonymous -
The following code is not a Measure, but a Calculated Table:
Service Cat List = CALCULATETABLE ( DISTINCT ( Data['SERVICE_CATEGORY'] ), Data[Creation Date] >= Data[From Date], Data[Creation Date] <= Data[To Date] )
When do you get the error, exactly?
Cheers!
Nathan
@Anonymous - Sorry, I won't be able to get to this today. I'll take a look tomorrow, unless you get it resolved. Creating a new thread may increase the chances of somebody else responding.
Hi,
I have modified the DAX to the below:
@Anonymous - I'm not sure exactly what you want to do, but it sounds like you want to:
1. Select dates and have that filter categories
2. Select categories to filter something else.
If this is the case, then you will need a category table, including relevant dates. Note: this table is not filtered when you create it.
Then you can filter this table so that only the desired categories show up.
The categories are columns of the table, not measures. That means they can be used as filters, as well.
Cheers!
Nathan
Hi,
I have copied the App link that I have created and you have some time for me, please go thorough the App.
https://drive.google.com/open?id=1B-8KctkkTGVHjF3bTB9MaFIQ2OyBKK19
Now at page 2, we have one input tet box and when user put date into it and select a date Range from drop down, it will automatically create From Date and To Date. Now I want that the Service Category drop down value will be changed based on that date range.
According to your suggestion, i need to create one pivot table with Category Name as column name and Date as values and use it for the drop down. So it will be easy to pick up for me if you create that thing in my uploaded App.
Please help me in this case.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
121 | |
79 | |
48 | |
37 | |
30 |
User | Count |
---|---|
191 | |
78 | |
71 | |
50 | |
42 |