Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I need to create a new column where I can get the Count of reservationId per clientId.
I have reservationId and clientId, reservationId is distinct.
I create a table to get count of reservationId per ClientId below:
Similarly I need that count in column.
Solved! Go to Solution.
Hi @Anonymous
It should be
T.Count = COUNTX (FILTER ( 'public Reservations', [clientId] = EARLIER ( [clientId] ) ),[reservationId])
Take care of pairs of parentheses. One ")" in your DAX formula just isn't at the correct position.
Best Regards,
Community Support Team _ Jing
Its giving Unexpected Parameter.
Furthermore, I am trying to get the column via Power Query Editor. @amitchandak
Hi @Anonymous
It should be
T.Count = COUNTX (FILTER ( 'public Reservations', [clientId] = EARLIER ( [clientId] ) ),[reservationId])
Take care of pairs of parentheses. One ")" in your DAX formula just isn't at the correct position.
Best Regards,
Community Support Team _ Jing
@Anonymous , this was dax, one correct
countx(filter(Table, [clientid] =earlier([clientid])) ,[reservationid])
for power query create a new table that group by client id and merge that with this table
@amitchandak I was able to use the group by and accomplish what I needed to do.
While for the DAX you provided, it is still showing Unexpected Parameter so that isn't working over here.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
79 | |
63 | |
52 | |
47 |
User | Count |
---|---|
217 | |
89 | |
76 | |
67 | |
60 |