Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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 |
---|---|
17 | |
14 | |
13 | |
13 | |
13 |
User | Count |
---|---|
19 | |
15 | |
14 | |
10 | |
9 |