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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
luispenaloza92
New Member

Frequency Issue Unique values

Hi Community,


I really need your help.


Im trying to creat a colum with the frequency of the distinct Bookings ID per emailAdress, this with the purpose of having the frequency of booking each email had done.

 

 


I have issues creating it inside Power BI , i have tried to creat a new table on SQL but i can not link it with my existing table onPowerBi because they must be unique values.

 

 

Capture.PNG

 

Thanks!

 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@luispenaloza92

 

 

Hi, Using this table like sample data:

 

Structure.png

 

Accord to your post you want a calculated column with Distinct Count of Booking Ids in Each Email Address

 

Structure with Column.png

 

To obtain this you should use this DAX:

 

DC-BookingIDperEMail =
CALCULATE (
    DISTINCTCOUNT ( Table1[BookingID] ),
    FILTER ( Table1, Table1[Email] = EARLIER ( Table1[Email] ) )
)

 

Now if you just want to show in a visual, you can do it using this:

 

Using A Visual.png

 

Regards

 

Victor

Lima - Peru




Lima - Peru

View solution in original post

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

@luispenaloza92,

 

You may also use DAX below to create a calculated table.

Table =
SUMMARIZECOLUMNS (
    Table1[EmailAddress],
    "Count", DISTINCTCOUNT ( Table1[BookingID] )
)
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.
Vvelarde
Community Champion
Community Champion

@luispenaloza92

 

 

Hi, Using this table like sample data:

 

Structure.png

 

Accord to your post you want a calculated column with Distinct Count of Booking Ids in Each Email Address

 

Structure with Column.png

 

To obtain this you should use this DAX:

 

DC-BookingIDperEMail =
CALCULATE (
    DISTINCTCOUNT ( Table1[BookingID] ),
    FILTER ( Table1, Table1[Email] = EARLIER ( Table1[Email] ) )
)

 

Now if you just want to show in a visual, you can do it using this:

 

Using A Visual.png

 

Regards

 

Victor

Lima - Peru




Lima - Peru

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.