Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

DAX (Average of a card visualisation)

Hi All,

 

Megha3012_1-1631886908418.png

 

The card above shows the sum.

I have calculated that way so that I can get excess buffered stock of each week in a bar chart.

But now, I need the average of that when I select a card visualisation.

How can I take the average of a measure?

 

Any help would be appreciated!

 

Thank you!

1 ACCEPTED SOLUTION
m3tr01d
Continued Contributor
Continued Contributor

@Anonymous 

 

Suppose you have a Week_No or Week_Name that you use on your barchart with the measure.
You can iterate on each of the week, calculate the measure then take the average of each number.

That's what AVERAGEX will be able to do :

Avg_Week =
AVERAGEX(
	VALUES( 'Table'[Week_No] ),
	[Your_Initial_Measure]
)

 

Hope this helps.

View solution in original post

5 REPLIES 5
m3tr01d
Continued Contributor
Continued Contributor

@Anonymous 

 

Suppose you have a Week_No or Week_Name that you use on your barchart with the measure.
You can iterate on each of the week, calculate the measure then take the average of each number.

That's what AVERAGEX will be able to do :

Avg_Week =
AVERAGEX(
	VALUES( 'Table'[Week_No] ),
	[Your_Initial_Measure]
)

 

Hope this helps.

Anonymous
Not applicable

Thanks a lot! @m3tr01d 

VahidDM
Super User
Super User

Hi @Anonymous 

 

Your question is unclear for me, so can you share the code you used to create the [excess buffered stock] measure?

 

 

Appreciate your Kudos✌️!!

Coriel-11
Resolver II
Resolver II

This is my first time attempting a reply so apologies if I've misunderstood the question...

 

If you go to the "Fields" area of the Visualisation pane and right click on the "Excess Buffered Stock field" you should see options for "Sum", "Average", "Minimum" etc. If so simply select the "Average option".

 

If not, that's probably because the field is set to "Don't Summarize". To change this go to "Data view" (left hand side), select the relevant column in the table and then under "Column Tools" change "Summarization" to "Sum" (average migth work as well). Then just go go through the steps above and it should work.

Matt

Anonymous
Not applicable

Thank you for your response @Coriel-11 

But I just want to know if I can take an average of a particular measure.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.