Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello!
I guess I am not the first one with problem like this but I really get no further than getting the constant value which is based on the whole dataset DRG_data. There are something like 3M rows and Cost has no null values and only some zeroes. There are some slicers but after slicing there still are quite big subgroups.
How to fix my code? Any advice is helpful.
CoefVariation =
VAR SelectedCost = VALUES('DRG_data'[Cost])
VAR FilteredTable = CALCULATETABLE('DRG_data', 'DRG_vertailu'[Cost] IN SelectedCost)
VAR MeanKustannus = AVERAGE('DRG_data'[Cost])
VAR StdDevKustannus = STDEV.S('DRG_data'[Cost])
RETURN
IF(
ISBLANK(MeanCost) || MeanCost = 0 || StdDevCost = 0,
BLANK(),
DIVIDE(StdDevKustannus, ABS(MeanKustannus)) * 100
)
With Regards,
Kimmo
Thank you for your answer.
I would like to send the link, but data belongs to a customer, so I am not able to share it. Could you propose a link to a web page etc... where somebody has had same kind of issues? My problem is that somehow filtering only has effect on visualisation.
Can I somehow refer to Tab where my visaulisation is or is there a way?
With Regards,
Kimmo Sivonen
@KimmoS
Sharing a dummy Power BI file representing your scenario would be beneficial. You can save the Power BI file on Google Drive or any other cloud storage platform and provide the link here. Kindly ensure that permission is granted to open the file.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
71 | |
69 | |
38 | |
26 | |
26 |
User | Count |
---|---|
97 | |
96 | |
59 | |
44 | |
40 |