Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
We have created the following expression;
Solved! Go to Solution.
@Alex1988 , replace calculate in one of the three ways
CALCULATE (
SUM ( Subscriptions[MatchingRecords] ),
FILTER (Subscriptions, Subscriptions[Start Date] <= currentDate
&& Subscriptions[End Date] >= currentDate ) ,
ALLEXCEPT(Subscriptions, Subscriptions[Active], Products[Product Description])
)
or
CALCULATE (
SUM ( Subscriptions[MatchingRecords] ),
FILTER (Subscriptions, Subscriptions[Start Date] <= currentDate
&& Subscriptions[End Date] >= currentDate ) ,
ALLEXCEPT(Subscriptions, Subscriptions[Active]),allexpect(Products, Products[Product Description])
)
or
CALCULATE (
SUM ( Subscriptions[MatchingRecords] ),
FILTER (allselected(Subscriptions), Subscriptions[Start Date] <= currentDate
&& Subscriptions[End Date] >= currentDate && Subscriptions[Active] = max( Subscriptions[Active])) ,
filter(allselected(Products), Products[Product Description] =max( Products[Product Description]))
)
need of allexcept on Subscriptions[Active] ?
@Alex1988 , if you trying to find active subscriptions, refer to a similar blog
or
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
This is the table from the datset with a relationship to a date calendar on startdate(active) and EndDate(inactive) and some relationships to other dimensions like products etc.
The Dax expression provided gives me:
Which is what i want - it's calculating base the way i would hope. It's just that when i select a product it takes ten minutes to recaculate becase there are lots of rows and dates to be computed.
Hi, @Alex1988
According to your DAX formula and output chart, it seems like that you have found a solution to achieve this in Power BI, right?
If you want to reduce the calculation time of Power BI based on such a big dataset, I think you can try to disable the useless columns in the Power Query.
If you handle this in a SQL Stored procedure before the dataset, I don’t think this will give your query speed a qualitative increase because the large dataset will also take plenty of time to be queryed.
If you still have a problem, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Alex1988 , replace calculate in one of the three ways
CALCULATE (
SUM ( Subscriptions[MatchingRecords] ),
FILTER (Subscriptions, Subscriptions[Start Date] <= currentDate
&& Subscriptions[End Date] >= currentDate ) ,
ALLEXCEPT(Subscriptions, Subscriptions[Active], Products[Product Description])
)
or
CALCULATE (
SUM ( Subscriptions[MatchingRecords] ),
FILTER (Subscriptions, Subscriptions[Start Date] <= currentDate
&& Subscriptions[End Date] >= currentDate ) ,
ALLEXCEPT(Subscriptions, Subscriptions[Active]),allexpect(Products, Products[Product Description])
)
or
CALCULATE (
SUM ( Subscriptions[MatchingRecords] ),
FILTER (allselected(Subscriptions), Subscriptions[Start Date] <= currentDate
&& Subscriptions[End Date] >= currentDate && Subscriptions[Active] = max( Subscriptions[Active])) ,
filter(allselected(Products), Products[Product Description] =max( Products[Product Description]))
)
need of allexcept on Subscriptions[Active] ?
I'm not sure i do need the allexcept to be honest - it was just in an example i found on here. I think you're right. It's not needed. I'll give those a go and find out 🙂
Thanks,
Alex
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 81 | |
| 73 | |
| 46 | |
| 35 |