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.
Hi all,
Two different sources, linked by dates, but can't get a visual with 2 bars each month
(green bar ok, grey bar not ok):
here is a look at the two linked dates:
thanks for your help
Solved! Go to Solution.
You should use a Date table an create relationships to both tables. Then in the chart use the Month of the Dates table to see the amounts.
Date tables must contain continuous dates.
Regards
You should create a new colum with something like STARTOFMONTH(IssuedAt) to get the same value in both tables.
Then make the relationship with the new column.
Regards
Rodrigo
@Greg_Deckler: same date type : dd/mm/yyyy. I tried with a solution you gave elsewhere like = MONTH([date]) & YEAR([date]) but I get
"Expression error: The name 'MONTH' wasn't recognized. Make sure it's spelled correctly."
@Anonymous: "get the same value in both tables." => sure, got it, thanks!
I'm just beginnig with PBI...I get the following error:
"Expression error: The name 'STARTOFMONTH' wasn't recognized. Make sure it's spelled correctly."
I think I don't enter DAX correctly...
best,
@Anonymous: yes in PBI. But I was in the Query Editor 🙂
Actually, it's very unclear to me when to edit data in the Query Editor and when to do it in the modeling...
Doing the formula in modeling works great, and i updated the relationship
It's getting much better :
but the grey bar doesnt display the good number for each month: either a total or average
You should use a Date table an create relationships to both tables. Then in the chart use the Month of the Dates table to see the amounts.
Date tables must contain continuous dates.
Regards
@AnonymousThanks! This is really a best practice I hadn't read so far... Microsoft should create a tutorial to cover this. I guess the date table and country table are probably the most used.
Looks like your dates are in 2 different formats, might try making them both mm/dd/yy or dd/mm/yy. Blanks generally indicate nont-matching rows in a relationship.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |