Forum Discussion
Filter as a reference
- 9 years ago
Hi Matheus_bnm,
In your scenario, you can create another table which has the DATE and Revenue columns. Make sure there is no relationship between this new table and the original one.
Table = SELECTCOLUMNS('Fact',"Date",'Fact'[Date],"Revenue",'Fact'[Revenue])
Then create a measure in this new table:
SelectValue = IF(HASONEVALUE('Table'[Date]),VALUES('Table'[Revenue]),BLANK())
Create a measure in original table:
Revenue(NEW) = DIVIDE(SUM(Fact[Revenue]),'Table'[SelectValue],0)
Then drag the Date column from the new table into a slicer visual,
Best Regards,
Qiuyun Yu
Hi Matheus_bnm,
In your scenario, you can create another table which has the DATE and Revenue columns. Make sure there is no relationship between this new table and the original one.
Table = SELECTCOLUMNS('Fact',"Date",'Fact'[Date],"Revenue",'Fact'[Revenue])
Then create a measure in this new table:
SelectValue = IF(HASONEVALUE('Table'[Date]),VALUES('Table'[Revenue]),BLANK())
Create a measure in original table:
Revenue(NEW) = DIVIDE(SUM(Fact[Revenue]),'Table'[SelectValue],0)
Then drag the Date column from the new table into a slicer visual,
Best Regards,
Qiuyun Yu