Forum Discussion
table creation
- 4 years ago
Hi Anonymous ,
According to your description, I download your sample, here's my solution.
1.Create two calculated columns in fact table.
Month_year = FORMAT('fact'[invoice_date],"MMM"&"/"&YEAR('fact'[invoice_date]))Year = YEAR('fact'[invoice_date])Create a calculated column in budget table.
Month_year = FORMAT(DATE(1,'budget'[month],1),"MMM")&"/"&'budget'[year]2.Make relationship between the two tables with the Month_year column.
3.Select Month_year column from fact table and other columns you want to sum into the table visual, make two slicers, it will get the correct sum result according to the underwriter and year.
I attach the sample below for reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous Hi, you should need unique identifier (Primary key) to make relationship between both tables, then it can be done