Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi there,
I have created a measure that calculates the average value of a column named 'VoLL per hour' in the VoLL table. I want to use that measure as line value in Line and stacked column visualisation. The table looks like as follows:
I code the average measure as follows:
Now the problem is that when I click on the slicer values (such as season slicer which contains shoulder winter summer season), the average measure does not update its calculation. Could anyone help me where I am making the mistake?
Solved! Go to Solution.
@Dunner2020 ,
It was my mistake, didn't understand the issue.
Try using variables for all slicers that should influence the average value (my demo below - i am calculating avg of Sales column in Sales table and filter is from dimension Item):
Hi @Dunner2020 ,
Create a measure as below:
Average VoLL Feeder =
IF(ISFILTERED('VoLL'[Season]),CALCULATE(AVERAGE('VoLL'[voll per hour]),FILTER(ALL('VoLL'),'VoLL'[Season]=SELECTEDVALUE('VoLL'[Season]))),CALCULATE(AVERAGE('VoLL'[voll per hour]),ALL('VoLL')))
If above doesn work,could you pls upload your .pbix file to onedrive business and share the link with us?
@v-kelly-msft , it same issue. I am posting a picture of my data model. Slicer value coming from the Season table. I think there should not be a problem as long as the relationship is established.
@Dunner2020 ,
It was my mistake, didn't understand the issue.
Try using variables for all slicers that should influence the average value (my demo below - i am calculating avg of Sales column in Sales table and filter is from dimension Item):
Please try using ALLSELECTED instead of ALL
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@mahoneypat , ALLSELECTED(VoLL) does not produce the right answer. The average value is around 9000 and with ALLSELECTED(VoLL) it gives around 29000.
Please try just removing the filter from Feeder ID with
ALL(VoLL[Feeder_ID)
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@Dunner2020 ,
Last row makes this formula independent from used slicer on Voll table.
ALL(VoLL) - means return everything, no matter what is selected.
Firstly try removing that part and see how it looks like.
After that you could try adding AllExcept(Voll[Season]) (instead of All(Voll)) and then selecting season filter will influence on calculation.
@nandic , I tried by removing all function. It started giving by an average by feeder id as shown in the figure:
If I include allexcept(VoLL[Season]), it does not make any difference when I apply season slicer on it.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.