Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Dear All,
I have two tables below and i want to split my price into 4 new columns:
1. v low price
2. low price
3. Avg price
4. High price
The price to be shown in each of these columns should be:
o Very Low: if price < (average - $7.50) for that product, show the quantity, if not show "0"
o Low: if price between (average - $7.50) and (average - $2.50) for that product, show the quantity, if not show "0"
o Average: If price between (average - $2.50) and (average + $2.50), show the quantity, if not show "0"
o High: If price > (average + $2.50), show the quantity, if not show "0"
How do i calculate this? Please advise.
Solved! Go to Solution.
Hi @Anonymous
Please donwload this file, I added all those columns to your table.
Download Link : https://gofile.io/d/L3yBiZ
Output:
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your Kudos ✌️!!
Hi @Anonymous
I did not get your question very well.
Do you want to have separate tables for Price and Quantity? then use
Or do you want duplicate columns to indicate exact figures from Price and Quantity? if yes try these codes to add new columns:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos !!
Hi @Anonymous
Please donwload this file, I added all those columns to your table.
Download Link : https://gofile.io/d/L3yBiZ
Output:
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your Kudos ✌️!!
Hi @VahidDM
Thank you for the soultion. I have another question, i want to create new measure name "Price 1" and "volume". The "Price 1", i want to it to grab all the data from price column and the "volume" measure i want to grab data from quantity column. what formula should i use? Please advise.
Hi @Anonymous
I did not get your question very well.
Do you want to have separate tables for Price and Quantity? then use
Or do you want duplicate columns to indicate exact figures from Price and Quantity? if yes try these codes to add new columns:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos !!
@Anonymous I think the first thing you need is a working average measure like:
Average Measure =
VAR __Product = MAX('Table'[Product])
RETURN
AVERAGEX(FILTER(ALL('Table'),[Product] = __Product),[price])
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
8 | |
7 | |
4 | |
3 |
User | Count |
---|---|
14 | |
13 | |
11 | |
10 | |
10 |