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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
simaue
New Member

Calculate Number of Customers

Hello,

 

i have a situation on image : 

simaue_0-1703421250145.png

 

 

I need to calculate number of distinct values from first column who have more than 2% of last column, and i want to put this information into new card. I want to see number of 4. 


How to write dax code?

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@simaue 

Create a measure as follows:

NewMEASURE =
COUNTROWS (
    FILTER (
        ADDCOLUMNS ( VALUES ( table[Sifra cupca] ), "@m", [iUcescesUprometu] ),
        [@m] > 0.02
    )
)




Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@simaue 

Create a measure as follows:

NewMEASURE =
COUNTROWS (
    FILTER (
        ADDCOLUMNS ( VALUES ( table[Sifra cupca] ), "@m", [iUcescesUprometu] ),
        [@m] > 0.02
    )
)




Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Idrissshatila
Super User
Super User

Hello @simaue ,

 

kindly provide a sample data that we can copy so we could provide a solution. also the measure for the percentage column.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.