Forum Discussion
Anonymous
6 years agoNot applicable
Date Dimension Filter
Hi All, Is there any alternate way to achieve this below blog? https://community.powerbi.com/t5/Desktop/Column-Selection-using-a-Disconnected-table/m-p/820490#M394243 I don't want to duplicate ...
- Anonymous6 years ago
Hi Anonymous ,
How about create a calculated table and create a measure as a visual level filter?
Table 2 = UNION ( SELECTCOLUMNS ( 'Table', "date", 'Table'[date].[Month] & 'Table'[date].[Year], "value", 'Table'[value], "period", "Month" ), SELECTCOLUMNS ( 'Table', "date", 'Table'[date].[Year] & 'Table'[date].[Quarter], "value", 'Table'[value], "period", "Quarter" ), SELECTCOLUMNS ( 'Table', "date", 'Table'[date].[Year], "value", 'Table'[value], "period", "Year" ) ) Measure = IF(SELECTEDVALUE('Table 2'[period])=SELECTEDVALUE(period[period]),1,BLANK())Result would be shown as below.
Pbix as attached.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
6 years agoNot applicable
Hi Anonymous ,
Please use WEEKNUM function() instead.
Table 2 =
UNION (
SELECTCOLUMNS (
'Table',
"date", 'Table'[date].[Month] & 'Table'[date].[Year],
"value", 'Table'[value],
"period", "Month"
),
SELECTCOLUMNS (
'Table',
"date", 'Table'[date].[Year] & 'Table'[date].[Quarter],
"value", 'Table'[value],
"period", "Quarter"
),
SELECTCOLUMNS (
'Table',
"date", 'Table'[date].[Year],
"value", 'Table'[value],
"period", "Year"
),
SELECTCOLUMNS (
'Table',
"date", WEEKNUM('Table'[date]),
"value", 'Table'[value],
"period", "Weeknum"
)
)Result would be shown as below.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
6 years agoNot applicable
Hi Anonymous Thanks for your help!!