The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
19 | |
18 | |
16 | |
13 |
User | Count |
---|---|
39 | |
38 | |
23 | |
21 | |
20 |