Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello all,
I have a Table "Invoice" has columns "Invoice Date" and "Revenue".
Other Table "JobCost" has columns "Date" and "Cost".
I want to plot a visual of "Line and Column Chart". Which have Months on x-axis (Must be from Combination of both Tables Date column) , Y-axis Revenue, Secondary Y-axis Cost.
I tried to combine both Date columns but its giving me an Error. When I am refrring to any one of Date column Vs other Columns, its showing wrong values.
Please guide me, how to solve this problem. I tried many options since last days. Its not working. Guidelines will be really helpful.
Thank you.
Solved! Go to Solution.
hi @Prr2023 ,
not sure if i fully get you. supposing you have an invoice table and a cost table like:
try like:
1) add a calculated dates table like
dates = ADDCOLUMNS( CALENDAR( MIN(MIN(invoice[Date]), MIN(cost[Date])), MAX(MAX(invoice[Date]), MAX(cost[Date])) ), "YYMM", FORMAT([Date], "YY/MM") )
2) relate the three tables like:
3) plot a line and column chart with dates[yymm] column, invoice[revenue] and cost[cost] like below:
The point is to have shared dimension from a dedicated dimensional table.
It works. Thank you.
hi @Prr2023 ,
not sure if i fully get you. supposing you have an invoice table and a cost table like:
try like:
1) add a calculated dates table like
dates = ADDCOLUMNS( CALENDAR( MIN(MIN(invoice[Date]), MIN(cost[Date])), MAX(MAX(invoice[Date]), MAX(cost[Date])) ), "YYMM", FORMAT([Date], "YY/MM") )
2) relate the three tables like:
3) plot a line and column chart with dates[yymm] column, invoice[revenue] and cost[cost] like below:
The point is to have shared dimension from a dedicated dimensional table.
User | Count |
---|---|
22 | |
14 | |
11 | |
7 | |
5 |
User | Count |
---|---|
24 | |
22 | |
20 | |
15 | |
10 |