Forum Discussion
Relationship/Dax Function
- 5 years ago
Hi vinoothna9 ,
The reason that cause this issue is that you diable the date relationship between two tables so that the fiscal year slicer could not work and the visual will show both fiscal years value based on your initial measure.
You can modify your measure like this:
Revenue Amount = CALCULATE ( SUM ( 'Revenue Table'[Revenue] ), FILTER ( 'Revenue Table', YEAR ( 'Revenue Table'[Date] ) = SELECTEDVALUE ( 'Default Calendar'[Fiscal year] ) ), USERELATIONSHIP ( 'Default Calendar'[Quarter], 'Revenue Table'[Quarter] ) )In my sample use the table visual to show the result directly:
Attached the sample file in the below, hopes to help you.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Yes It doesn't require any measure if Revenue[date] is related to Date[Date]. For some reason I don't see revenue Amount in the visual when I have Revenue[Date] related to Date[Date]. The slicers are working fine for other tables/columns except Revenue table.
- dobregon5 years agoImpactful Individual
what is the direction of the relationship with revenue table? maybe the problem is there. try to use both direcctions.
- vinoothna95 years agoFrequent Visitor
dobregon even after I change it to both it is the same.
- AllisonKennedy5 years agoCommunity Champion
vinoothna9 what is the date format for revenue table? Is there a match? It's probable that they are in a different format, or the date table doesn't include the dates in revenue, or something doesn't match. I find using date columns as key in relationships can cause issues at times. Try using a text DateKey column and see if that solves things, and triple check that the data matches:
https://excelwithallison.blogspot.com/2020/10/datekey-how-to-relate-your-date-data.html
https://excelwithallison.blogspot.com/2020/04/dimdate-what-why-and-how.html