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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
saranp780
Helper III
Helper III

How to count value that is only different?

Hi everyone, I am a new Power BI user. I have a requirement. Please suggest to me how to let a measure work.

 

DateTimeUsernameTransaction
01.07.20199:53:07APayment
01.07.20199:53:07APayment
02.07.201910:25:28APayment
02.07.201910:25:46APURCHASE
02.07.201915:46:52APURCHASE
03.07.201910:51:01BPURCHASE
03.07.201910:51:01BPURCHASE
03.07.201910:51:01BPURCHASE
03.07.201911:01:01BPayment

 

I have one set of data like this table. What I want to do is to count the transaction that each people access but when I export the data from the system something that I don't want to use is also export too.

 

I want the measure that shows the result like this.

 

UsernameTransactionTime
APayment2
APURCHASE2
BPayment1
BPayment1

 

The same data count only 1 time. In my sample, user A accesses Payment transaction 2 times at 9:53:07 so count just 1.

 

Please suggest the measure or something that I have to do. Thank you.

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

You should be able to do this by creating a measure that uses the DISTINCTCOUNT function on the time column.

 

eg.

 

= DISTINCTCOUNT(  Table[Time] )

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@saranp780 

 

You may add the measure below.

Measure =
COUNTROWS ( SUMMARIZE ( 'Table', 'Table'[Date], 'Table'[Time] ) )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
d_gosbell
Super User
Super User

You should be able to do this by creating a measure that uses the DISTINCTCOUNT function on the time column.

 

eg.

 

= DISTINCTCOUNT(  Table[Time] )

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.