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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

split column value based on another column

i have two column 

 

PR Compliance

 

PR                         PR DATA

Within                      4

Over                         2

Over                         2

Within                      4

Within                      4

 

 

i am trying split  value avergat  based PR value i  have used following measure 

PR Compliance -over val =
CALCULATE(
AVERAGE('PR Details'[PR ]),
'PR Details'[PR]="Within"
)
 
i am getting Error  "The function AVERAGE cannot work with values of type String." any 
1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Anonymous Try

PR Compliance -over val =
CALCULATE(
AVERAGE('PR Details'[PR DATA]),
'PR Details'[PR]="Within"
)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

5 REPLIES 5
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Anonymous ,

Tanushree_Kapse_0-1629980731654.png

 

 

 

Mark this as a solution, if I answered your question. Kudos are always appreciated.

Thanks

 

goncalogeraldes
Super User
Super User

@Anonymous 
PR Compliance -over val =
CALCULATE(
AVERAGE(VALUE('PR Details'[PR ])),
'PR Details'[PR]="Within"
)
 
Hope this answer solves your problem! If you need any additional help please tag me in your reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️ or give it a kudoe 👍
Thanks!

Best regards,
Gonçalo Geraldes
Anonymous
Not applicable

@goncalogeraldes 

 

Month        PODetails

May            over

May            over

May            within

May            over

June            within

June          within

June           over            

July            within

 

My percentage  want month wise 

 

Month       Over          within           Grand Total 

May            75%         25%                  100%

June            25%         75%                  100%

 

 

any idea month wise percentage ? thanks in advance

Greg_Deckler
Community Champion
Community Champion

@Anonymous Try

PR Compliance -over val =
CALCULATE(
AVERAGE('PR Details'[PR DATA]),
'PR Details'[PR]="Within"
)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler   i have month wise text count value like 

 

Month        PODetails

May            over

May            over

May            within

May            over

June            within

June          within

June           over            

July            within

 

My percentage  want month wise 

 

Month       Over          within           Grand Total 

May            75%         25%                  100%

June            25%         75%                  100%

 

 

any idea month wise percentage ? thanks in advance

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.