Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
I have price table (daily), forex table (monthly), calender table (daily and monthly) and want to create new table (daily and calculations).
My original data's date is in text format and wrong order (can not change as it is not my data) so I added amend daily and amenda month to clean up.
I tried crossjunction function to combine them but for some reason, all date mix up.
Please help!!!!
Solved! Go to Solution.
In price table create these columns
Amend Month = date(year([Amend Daily]),month([Amend Daily]),1)
Exchange = minx(filter(Forex,Froex[Amend Month]=Price[Amend Month]),Forex[AUD/USD])
Sales/USD = Price[Sales/AUD]*Price[Exchange]
Sales + 15 Percent margin = Price[Sales/USD]*1.15
In price table create these columns
Amend Month = date(year([Amend Daily]),month([Amend Daily]),1)
Exchange = minx(filter(Forex,Froex[Amend Month]=Price[Amend Month]),Forex[AUD/USD])
Sales/USD = Price[Sales/AUD]*Price[Exchange]
Sales + 15 Percent margin = Price[Sales/USD]*1.15
Hi Amitchandak,
Thank you very much for your help. I have never used minx & filter - they are such a powerful functions. Thank you again.
All the best,
Paris
It is tough to say exactly without sample text data. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
However, it seems like what you want is Merge Query in the Query Editor. This would be much more efficient than trying CROSSJOIN function in DAX. Although it is possible that you might have wanted to use NATURALINNERJOIN DAX function instead of CROSSJOIN.
HI Greg Decler,
Thank you for your advice. I did not know I can post a table. It is such a useful infomation. Thank you!
All the best,
Paris
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
99 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |