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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.