March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi there. I need a help.
I need count repeted data between two bases.
Base A - Calendar: Contain all date of a month (date no repeat)
Base B - Ticket registration: Contains many records throughout the month (more than one record for each day of month )
I need include a column in table Base A - Calendar to count how many times the records of table Base B - Ticket registration appears according a date in Base A.
Ex: Table B there is 4 records in day 20 and 9 records in day 25:
Tabble A - Caledar
Thanks so much
Solved! Go to Solution.
Hi @Mfouyer ,
Try the below formula:
Column =
VAR dul =
CALCULATE (
COUNTROWS ( 'Table' ),
ALLEXCEPT ( 'Table', 'Table'[Date], 'Table'[Record] )
)
RETURN
IF ( dul = 1, 0, 1 )
M =
VAR row_total =
CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[Date] ) )
VAR row_dul =
CALCULATE ( SUM ( 'Table'[Column] ), ALLEXCEPT ( 'Table', 'Table'[Date] ) )
RETURN
row_total - row_dul
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Mfouyer ,
Try the below formula:
Column =
VAR dul =
CALCULATE (
COUNTROWS ( 'Table' ),
ALLEXCEPT ( 'Table', 'Table'[Date], 'Table'[Record] )
)
RETURN
IF ( dul = 1, 0, 1 )
M =
VAR row_total =
CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[Date] ) )
VAR row_dul =
CALCULATE ( SUM ( 'Table'[Column] ), ALLEXCEPT ( 'Table', 'Table'[Date] ) )
RETURN
row_total - row_dul
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
126 | |
84 | |
69 | |
53 | |
44 |
User | Count |
---|---|
204 | |
105 | |
99 | |
64 | |
54 |