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.
Hey guys,
I am currently trying to calculate the revenue per country based on some kind of universal list price for the sake of comparability. I am facing transaction data per continent ("North America", "Rest"), per country, and per productID.
I want to add a custom column ideally in Power Query (but DAX is also possible), which states the average list price for the productID but only takes list prices of the continent "Rest" into account.
Some examples:
I added a column "SolutionPrice" to the data model to give you an idea of the desired values. I calculated this column in Excel. My original data model is massive and I would like to do the calculation in Power BI, not Excel.
A sample data set can be found here: https://www.dropbox.com/sh/xfprg05oks3g3zy/AACRd4NsuoW1Exh0uz2xNOnGa?dl=0
Thank you in advance.
Best
Tom
Solved! Go to Solution.
Hi, @t_guet01
Please check the below picture and the sample pbix file's link down below.
It is for creating a new column.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi, @t_guet01
Please check the below picture and the sample pbix file's link down below.
It is for creating a new column.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi Jihwan Kim,
perfect, thanks a lot!
just out of interest: do you know the respective functions in Power Query? So the equivalents for "summarize" etc.?
Hi, @t_guet01
Thank you for your feedback.
I think the function Groupby function in Power Query Editor is similar to the Summarize function in DAX.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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 | |
75 | |
63 | |
52 | |
47 |
User | Count |
---|---|
218 | |
86 | |
64 | |
63 | |
60 |