Forum Discussion
mattao44
4 years agoFrequent Visitor
Multiple IDs to one fact table
I have the following example where I have in the Code mapping table two IDs which one relates to the current year ID and the second to the prior year ID. It is important to map them against eachother so that we can do calculations such as current year net revenue vs. prior year net revenue.
I am struggling to figure out the best way to structure the data model vs. how much to takle with DAX. Any ideas on the best way to model it?
Hello mattao44
Attached is the pbix, with small changes in the mapping table, and added measures to the fact table, and see the table : Hope this is what was intented. If you don't want to change the mapping table structure it can be achieved using different method. Please let me know if this helps.