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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.