March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi there,
I have 2 simple tables
Table 1
Year | Month | Allocated Resources |
2021 | 6 | 8 |
2021 | 7 | 2 |
2021 | 4 | 3 |
And Table 2
Year | Month | Hired |
2021 | 2 | 4 |
2021 | 6 | 2 |
2021 | 3 | 1 |
How can I represent these 2 tables in one chart side by side compare grouped by month?
When I add one table it works and show the breakdown by month, but when I add the second table 'Hired' as values it sums up the values and does it break it down beside the first data.
Your input is much appreciated.
thank you
Solved! Go to Solution.
Hi @tony_tohme ,
The final output refer:
create the column on the two table:
yearmonth = 'Table'[Year]&""&'Table'[Month]
Column = 'Table (2)'[Year]&""&'Table (2)'[Month]
Then create the below table:
Table3 =
DISTINCT (
UNION (
SELECTCOLUMNS (
'Table',
"year", 'Table'[Year],
"month", 'Table'[Month],
"my", 'Table'[yearmonth]
),
SELECTCOLUMNS (
'Table (2)',
"year", 'Table (2)'[Year],
"month", 'Table (2)'[Month],
"my", 'Table (2)'[Column]
)
)
)
Relationship like below:
Then create the visual:
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
Hi @tony_tohme ,
The final output refer:
create the column on the two table:
yearmonth = 'Table'[Year]&""&'Table'[Month]
Column = 'Table (2)'[Year]&""&'Table (2)'[Month]
Then create the below table:
Table3 =
DISTINCT (
UNION (
SELECTCOLUMNS (
'Table',
"year", 'Table'[Year],
"month", 'Table'[Month],
"my", 'Table'[yearmonth]
),
SELECTCOLUMNS (
'Table (2)',
"year", 'Table (2)'[Year],
"month", 'Table (2)'[Month],
"my", 'Table (2)'[Column]
)
)
)
Relationship like below:
Then create the visual:
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
@tony_tohme , Either create a common month year table or Date table and join with that and analyze other
In both table you can have one of the column
Month Year = [Year]*100 +[Month]
or
Date = date([year],[month],1)
Join both with date table to month year and use that for analysis
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |