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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

AS AVERAGED BY A CATEGORY

I need to create a card with the average value of the valor_kilo for business unit 2, but I don't like how to do it:

JUANCARLOSCALLE_0-1630849049007.png

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi ,

 

I have created some data to show the steps below, as the image you have provided is not clear.

vchenwuzmsft_0-1631063724989.png

 

There are two ways to achieve your requirementsmeasure or Filters. You can follow along with my steps.

 

Create a Measure

AVG Measure = CALCULATE(AVERAGE(Sheet1[valor_kilo]),FILTER(ALL(Sheet1),'Sheet1'[business unit]="2"))

And put it in card.

 

Or

 

Use the filters

Put the field valor_kilo in the card and Set the field's properties to the average value via the arrow as the following show.

vchenwuzmsft_1-1631063724995.png

 

Then drag the field business unit to the visuals filters and select the checkbox 2.

vchenwuzmsft_2-1631063724996.png

 

 

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Does this measure work?

AVG Measure = CALCULATE(AVERAGE(Sheet1[valor_kilo]),'Sheet1'[business unit]="2")


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-chenwuz-msft
Community Support
Community Support

Hi ,

 

I have created some data to show the steps below, as the image you have provided is not clear.

vchenwuzmsft_0-1631063724989.png

 

There are two ways to achieve your requirementsmeasure or Filters. You can follow along with my steps.

 

Create a Measure

AVG Measure = CALCULATE(AVERAGE(Sheet1[valor_kilo]),FILTER(ALL(Sheet1),'Sheet1'[business unit]="2"))

And put it in card.

 

Or

 

Use the filters

Put the field valor_kilo in the card and Set the field's properties to the average value via the arrow as the following show.

vchenwuzmsft_1-1631063724995.png

 

Then drag the field business unit to the visuals filters and select the checkbox 2.

vchenwuzmsft_2-1631063724996.png

 

 

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Syndicate_Admin , Screenshot and expected output is not clear

 

Averagex(Filter(Table, Table[Business Unit] =2), Table[valor_kilo])

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.