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

Card Visual showing a different Result (Category)

I have a requirement to  create a Card visual to show one specific Rating based from the date slicer. It appears that it is showing a different one as I compare it on the entire table below.  The Expected output is Very Poor.  I can resolve this issue by enabling the bi-directional filter  but I don't want to do it since it will cause ambiguity for the model. Is there another way to resolve this kind of issue?  

 

Here is the sample pbix 

 

v_mark_0-1651731501328.png

 

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @v_mark ,

 

Please use the measure:

 

StarRating = 
FIRSTNONBLANKVALUE (
    'Fact'[Date],
    CALCULATE (
        MIN ( 'Dimension'[category] ),
        KEEPFILTERS ( 'Dimension'[Rating Value] = MAX ( 'Fact'[Store Rating] ) )
    )
)

vkkfmsft_0-1652085547547.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-kkf-msft
Community Support
Community Support

Hi @v_mark ,

 

Please use the measure:

 

StarRating = 
FIRSTNONBLANKVALUE (
    'Fact'[Date],
    CALCULATE (
        MIN ( 'Dimension'[category] ),
        KEEPFILTERS ( 'Dimension'[Rating Value] = MAX ( 'Fact'[Store Rating] ) )
    )
)

vkkfmsft_0-1652085547547.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v_mark
Helper V
Helper V

@VahidDM - Yes they are connected to each other. I've attached a sample pbix for reference 

 

Can you pleae upload that on https://gofile.io/ and send me the link

 


Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

I was able to drop a file on that link and updated the link on this trend 

VahidDM
Super User
Super User

Hi @v_mark 

 

It seems you added the Category Column to the Card Value field, and because that column has Text format, the card shows the first item in the column (that Below start with B so it's the first)

 

You need to write a measure or connect those tables to each others

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

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.