Forum Discussion
How to create custom column for a slicer
- 7 years ago
Hi Anonymous
You may try to use SELECTEDVALUE Function and SWITCH Function to create the measure as requested. For example:
Value = SWITCH ( SELECTEDVALUE ( Country[Country] ), "a", CALCULATE ( SUM ( Table[AT.BUIL] ) ), "b", CALCULATE ( SUM ( Table[AT.BUIL2] ) ) )Regards,
Cherie
Hi Anonymous
It seems you may try to create a calendar table with date column and link it with other tables. Then use the date column as slicer. You may have a look at below article about relationship.
https://docs.microsoft.com/en-us/power-bi/desktop-create-and-manage-relationships
Regards,
Cherie
Hi Cherie,
I was thinking about creating relationship between dates, however since I linked data from a excel file that is on my onedrive, all the manage relationship buttons are greyed out in pbi desktop. So either have to find a work around or go to the initial excel file and try to do change there.
I would appreciate any advice on that.
Regards,
Arnold