I have a holiday table which has
etc and in my fact table I have
Basically I am wanting a column/measure in my fact table that gets the number for todays date and minus the TDD Number.
Any help to go about this appreciated.
Go to Solution.
Did you mean this?
Minus Value =
VAR TDDNum =
MAX ( Holiday[ID] ),
FILTER ( Holiday, Holiday[Date] = MAX ( 'Fact'[TDD Date] ) )
VAR TodayNum =
CALCULATE ( MAX ( Holiday[ID] ), Holiday[Date] = TODAY () )
TDDNum - TodayNum
View solution in original post
First what are today's number and the TDD number? What's the relationship between holiday table and fact table? And what's the logic to make today's number minus the TDD number?
Please share us more information about your requirement like your table structure and some sample data with its expected result.
I am joining the two tables on date and I am wanting to get the related ID for tdd date and minus that from todays date ID
Kudos to you if you earned one of these! Check your inbox for a notification.
Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.
Find out where you can attend!