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
Anonymous
Not applicable

Display count value in card for conditional data.

Hello, 

Working with data set similar to below image, Want to displayed count of suppliers whose score >= 0.6 & < 60 and it should be updated with Filter value of Time Horizon.
19-02.jpg


For that try to create mesure, 

Low Agility Suppliers = 

var Horizon = SELECTEDVALUE(Orders[Due date Time Horizon])

Return

IF(Horizon = "Forecasted",
IF(ISBLANK(CALCULATE(
DISTINCTCOUNT(Orders[supplier]),
FILTER(Orders,[Agility Score] < 0.6 && Orders[Due date Time Horizon]="Forecasted"))),

0,CALCULATE(DISTINCTCOUNT(Orders[supplier]),
FILTER(Orders,[Agility Score] < 0.6 && Orders[Due date Time Horizon]="Forecasted"))),


IF(ISBLANK(CALCULATE(
DISTINCTCOUNT(Orders[supplier]),
FILTER(Orders,[Agility Score] < 0.6 && Orders[Due date Time Horizon]="Historical"))),

0,CALCULATE(DISTINCTCOUNT(Orders[supplier]),
FILTER(Orders,[Agility Score] < 0.6 && Orders[Due date Time Horizon]="Historical"))

))

Same for the High value supplier with change value >=0.6 
Displayed both value in card but total of both value are greater than total supplier in data set.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Not sure what is measure for <60. You have to try a measure like

 

countx(filter(Summarize(Table, Table[Supplier], "_1",[Agility Score] , "_2", sum(Table[Ordered Delivered])),[_1] >=.6 && [_2] <60),[Supplier])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Not sure what is measure for <60. You have to try a measure like

 

countx(filter(Summarize(Table, Table[Supplier], "_1",[Agility Score] , "_2", sum(Table[Ordered Delivered])),[_1] >=.6 && [_2] <60),[Supplier])

Anonymous
Not applicable

Hello @amitchandak ,

Thanks for the reply, 
I have to displayed summarized result as table (Matrix), Score values between 0 to 1.
which calculated working fine.
Now, 
I want to displayed Card of Total number or supplieres whom score >= 0.6. and in another card for < 0.6 
In filter Selecting if select any new buyer whom dont have any supplier yet so that time displayed blank so replace blank value with 0 I tried this.

Low Agility suppliers= 

IF(ISBLANK(CALCULATE(DISTINCTCOUNT(Orders[supplier]),FILTER(Orders,[Agility Score] < 0.6))),

0,CALCULATE(DISTINCTCOUNT(Orders[supplier]),FILTER(Orders,[Agility Score] < 0.6))
High Agility suppliers= 

IF(ISBLANK(CALCULATE(DISTINCTCOUNT(Orders[supplier]),FILTER(Orders,[Agility Score] >= 0.6))),

0,CALCULATE(DISTINCTCOUNT(Orders[supplier]),FILTER(Orders,[Agility Score] >= 0.6))


The total of both card should be equel to total unique supplier name count.
But the total of both card grater than total unique suppliers value.

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.