Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi
I am working with a direct query model and can only create measures. I have a calculated column FK in the model (Account Creation Date) that is in the format YYYYMMDD. I need to create a measure from this object and then use it in a slicer as a single button that will restrict any associated visual from 01/01/2021. Any help appreciated!
Thanks.
Hi, @Anonymous
PowerBI doesn't support applying a measure field to the slicer.You need to drag a actual column field to the slicer.
Since you are using the directquery connection mode, calculated columns are not supported.
As a workaround, you can try to create a calculated table and format the date field in this calendar table.
Calendartable = CALENDAR(DATE(2021,01,01),DATE(2022,01,01))
After build relationships between original table 1[Date] and calendartable[Date] ,you can use the calendartable[Date] to filter the original table.
Best Regards,
Community Support Team _ Eason
@Anonymous , you can join with a date table having such a key and work. You can that date table in power bi
refer: https://www.youtube.com/watch?v=cQfJ0GmQ5os&list=PLPaNVDMhUXGbKatyDdOhGbTL3xW2Xy6pA&index=7
User | Count |
---|---|
128 | |
109 | |
100 | |
65 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |