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
stuart765
Frequent Visitor

Separating Data in a Column for a Report

I am creating a report (Cards) and want to have separate cards for "New" and "Used". The data I am using lists "New" and "Used" in the same column (Catagory). 

Category
New 
Used
New 
New 
Used

 

How do I setup a Measure to quantify each category separately?

 

Thank you.

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @stuart765 

not sure if i fully get you, you may plot two card visuals with measures like:

NewCnt = 
COUNTROWS(
    FILTER(
        TableName,
        TableName[Category]="New"
    )
)

UsedCnt = 
COUNTROWS(
    FILTER(
        TableName,
        TableName[Category]="Used"
    )
)

 

it worked like:

FreemanZ_0-1675239074444.png

 

View solution in original post

2 REPLIES 2
stuart765
Frequent Visitor

It worked and thank you.

FreemanZ
Super User
Super User

hi @stuart765 

not sure if i fully get you, you may plot two card visuals with measures like:

NewCnt = 
COUNTROWS(
    FILTER(
        TableName,
        TableName[Category]="New"
    )
)

UsedCnt = 
COUNTROWS(
    FILTER(
        TableName,
        TableName[Category]="Used"
    )
)

 

it worked like:

FreemanZ_0-1675239074444.png

 

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.