Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi @_Regina ,
You can modify DAX to the following:
test_Clients funded with $1000 by March 31 from the Referrals =
VAR _start_date =
MINX ( ALL ( '_date unpivot' ), [Date Key] )
VAR _end_date =
MAXX ( ALL ( '_date unpivot' ), [Date Key] )
VAR _transaction =
FILTER (
ALL ( 'transaction' ),
DATESBETWEEN (
'transaction'[Processing Date],
DATE ( 2022, 10, 01 ),
DATE ( 2022, 10, 31 )
)
)
VAR _application =
FILTER (
ALL ( 'application' ),
'application'[Submit Date] <= DATE ( 2022, 10, 01 )
)
VAR _referral =
FILTER (
ALL ( 'referral' ),
DATESBETWEEN ( referral[Created Date], _start_date, _end_date )
)
VAR net_sales =
ADDCOLUMNS (
CALCULATETABLE (
FILTER (
SUMMARIZE (
'transaction',
'transaction'[Client ID],
"NetSalesbyMarch31", SUM ( 'transaction'[Amount] )
),
[NetSalesbyMarch31] >= 1000
),
KEEPFILTERS ( _transaction ),
KEEPFILTERS ( _application ),
KEEPFILTERS ( _referral )
),
"countclient", 1
)
VAR r =
SUMX ( net_sales, [countclient] )
RETURN
r
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
what is "[countclient]" in your case?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |