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 comunity,
I have a simple table that looks like this:
delivery | product | price | r price
1011084259 | 10096246 | 37 | 50,7 |
1011085643 | 10096246 | 37 | 44,1 |
1011260543 | 10096246 | 37 | 55,2 |
1011369349 | 10096246 | 37 | 42 |
1011684236 | 10089222 | 25 | 63,7 |
1011675242 | 10096246 | 37 | 46,9 |
1011677098 | 10096246 | 37 | 48,2 |
1011723460 | 10096246 | 37 | 45,2 |
The average of column price is 35,5 = average(table[price])
1011084259 | 10096246 | 37 | 50,7 | 86,2 |
1011085643 | 10096246 | 37 | 44,1 | 79,6 |
1011260543 | 10096246 | 37 | 55,2 | 90,7 |
1011369349 | 10096246 | 37 | 42 | 77,5 |
1011684236 | 10089222 | 25 | 63,7 | 99,2 |
1011675242 | 10096246 | 37 | 46,9 | 82,4 |
1011677098 | 10096246 | 37 | 48,2 | 83,7 |
1011723460 | 10096246 | 37 | 45,2 | 80,7 |
The following measure doesnt work...it sums each price to r price per row.
Solved! Go to Solution.
Hey,
Try this:
r price + average =
VAR r_price =
SUM ( 'table'[r price] )
VAR r_price_average =
CALCULATE ( AVERAGE ( 'table'[r price] ), ALLSELECTED () )
RETURN
r_price + r_price_average
Hi @Pillic
You can do the following
r price + average price =
VAR AveragePrice =
CALCULATE ( AVERAGE ( Data[price] ), ALLSELECTED ( ) )
RETURN
SUMX (
Data,
Data[r price] + AveragePrice
)
Hi @tamerj1 ,
thanks, this provided measure is much faster if I use it with unfiltered content. Awesome. Thx
Hey,
Try this:
r price + average =
VAR r_price =
SUM ( 'table'[r price] )
VAR r_price_average =
CALCULATE ( AVERAGE ( 'table'[r price] ), ALLSELECTED () )
RETURN
r_price + r_price_average
Hello Barthel,
amazing that did the job. I needed to change it a bit like this:
r price + average =
VAR r_price =
SUM ( 'table'[r price] )
VAR price_average =
CALCULATE ( AVERAGE ( 'table'[price] ), ALLSELECTED () )
RETURN
r_price + r_price_average
Thanks a ton for this fast response...Yall have a nice weekend, as I will now.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
75 | |
68 | |
41 | |
35 |
User | Count |
---|---|
102 | |
56 | |
52 | |
46 | |
40 |