The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
hi everyone! I have a problem. Im trying to get total average value in my table but i get wrong total value.
my measure:
if(ISBLANK([AVG по перко])||ISBLANK([AVG по штатке]), blank(), DIVIDE([AVG по перко], [AVG по штатке])-1)
AVERAGEX(SUMMARIZE('2023 штатка', '2023 штатка'[Физ лицо.Код], "dfd", if(ISBLANK([AVG по перко])||ISBLANK([AVG по штатке]), blank(), DIVIDE([AVG по перко], [AVG по штатке])-1)), [dfd])
Solved! Go to Solution.
Hi, @Kirilltog
I simply modelled your data and measure1 and measure2 give the same results without the need for a summary table.
Measure = IF(ISBLANK([AVG1])||ISBLANK([AVG2]),BLANK(),DIVIDE([AVG1],[AVG2]-1))
Measure 1 =
AVERAGEX(SUMMARIZE('Table','Table'[Type],"dfd",IF(ISBLANK([AVG1])||ISBLANK([AVG2]),BLANK(),DIVIDE([AVG1],[AVG2]-1))),[dfd])
Measure 2 = AVERAGEX('Table',IF(ISBLANK([AVG1])||ISBLANK([AVG2]),BLANK(),DIVIDE([AVG1],[AVG2]-1)))
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Kirilltog
I simply modelled your data and measure1 and measure2 give the same results without the need for a summary table.
Measure = IF(ISBLANK([AVG1])||ISBLANK([AVG2]),BLANK(),DIVIDE([AVG1],[AVG2]-1))
Measure 1 =
AVERAGEX(SUMMARIZE('Table','Table'[Type],"dfd",IF(ISBLANK([AVG1])||ISBLANK([AVG2]),BLANK(),DIVIDE([AVG1],[AVG2]-1))),[dfd])
Measure 2 = AVERAGEX('Table',IF(ISBLANK([AVG1])||ISBLANK([AVG2]),BLANK(),DIVIDE([AVG1],[AVG2]-1)))
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
60 | |
55 | |
53 | |
49 | |
30 |
User | Count |
---|---|
179 | |
87 | |
71 | |
48 | |
46 |