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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PoonamS
New Member

Need help with Average with two criteria

Hi - I need to calculate average value of Value column for sprecific questions in Label column and Dimension column. Please see table below. (Value column has both text and number strings for questions.)

 

I tried pivoting Label column with Value and add AVG measure; however, I get this error message. Is there a way to workaround this?

PoonamS_0-1638967159369.png

 

DimensionLabelValue
PAOver the course of this program, how frequently were you able to apply what you learned in managing data as an asset in your work?5
PAHow will you use your learnings to establish personal accountability for managing data as an asset within your daily work and behaviors? Lorem ipsum dolor sit amet, consectetur adipiscing elit.
TrustOver the course of this program, how frequently were you able to apply what you learned in building trust and confidence in data  in your work?3
TrustHow will you use your learnings to build more trust and confidence in data within your daily work and behaviors (instructions within question: Consider our foundational digital platforms in your answer)Lorem ipsum dolor sit amet, consectetur adipiscing elit.
ValueOver the course of this program, how frequently were you able to apply what you learned in using data to gain insights that deliver business value in your work?3
ValueHow will you use your learnings to use data to gain insights that deliver business value within your daily work and behaviors ?Lorem ipsum dolor sit amet, consectetur adipiscing elit.
1 ACCEPTED SOLUTION

@PoonamS , Also validate in Column tools, after clicking on the column in the filed pane in reporting view.

 

Can you share a sample pbix after removing sensitive data?

View solution in original post

6 REPLIES 6
PoonamS
New Member

Hi @amitchandak 

That's what I thought that data type is text but I had worked this data in PowerQuery.  When I select detec data for COlumn PA for which I am using Average Measure - it shows it as whole number. You can see on RHS how to pivot.

PoonamS_0-1638968604202.png

 

@PoonamS 

Are PA column and PA adoption column the different column? You are using average on the PA adoption column





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




yes, PA adoption was name of the measure I created for avg of PA column that was drawing blank due to data type being text instead of whole number. 

@PoonamS , Also validate in Column tools, after clicking on the column in the filed pane in reporting view.

 

Can you share a sample pbix after removing sensitive data?

yes, it worked. For some reason, it was not updated data text type - it is fixed. THank you so much Amit. 

amitchandak
Super User
Super User

@PoonamS , You are trying to use Average on column with text data type,

 

Either measure or default summarization or aggregation at visual level has that

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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