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
George1973
Helper V
Helper V

Count Text content in measure

Hi All,

Please assist in the following issue.

I have the following visual matrix:

NumAvg.ScoreMax Score Single task% Total ScoreVOC LVL
1991212100.00%Good
200111291.67%Good
20191275.00%Medium
202111291.67%Good
2031212100.00%Good
2041212100.00%Good
20571258.33%Bad
20691275.00%Medium
2071212100.00%Good
208101283.33%Medium
2091212100.00%Good
2101212100.00%Good

 

And Only the first column is column from the Data Table. All other columns are measures.

I want to create a measure to count "VOC LVL" values - Intending to know how many "Good", "Medium" and "Bad" records we have.

 

The problem I have is that VOC LVL is also a measure and I can not count its content because it's not a column context.

 

VOC LVL = SWITCH(TRUE(),[Avg.Score]>=11,"Good",[Avg.Score]>=8 && [Avg.Score]<=10,"Medium",[Avg.Score]<=7,"Bad")

 

 

Hope there is a solution.  Your help will be highly appriciated.

 

Thanks in advance,

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@George1973 , For that you have to bucket/dynamic segmentation. You need an independent table and create new measure using those

 

Have look at my video and file. if those can help: https://youtu.be/CuczXPj0N-k

 

File attached after signature

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@George1973 , For that you have to bucket/dynamic segmentation. You need an independent table and create new measure using those

 

Have look at my video and file. if those can help: https://youtu.be/CuczXPj0N-k

 

File attached after signature

@amitchandak Thanks a lot!

 

It's was really  helpful. I was also thinking about the indipended table and bins, but the measure you've provided in your video was a real breakthrough 🙂

Thanks.

@amitchandak Here is the final VOC dashboard. With your help the almost 40% of the work was done in very sufficient way.
Thanks a lot once again.

George1973_0-1601645207610.png

 

P.S. Do not get confused with the Georgian writings 🙂

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.

Top Solution Authors