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
SQL
Select BalanceDAte, Sum(CurrentBalance) FROM [dbo].[VW_RPT_PortfolioReview_6Month]
Where
Pool ='Java' AND
CATEGORY1 not in (
'Closed Full Redemption','Closed with remaining shortfall'
)
group by
BalanceDate
I want to group by BalanceDate,
CALCULATE(SUM(VW_RPT_PortfolioReview_6Month[CurrentBalance]), FILTER( ALLEXCEPT(VW_RPT_PortfolioReview_6Month,VW_RPT_PortfolioReview_6Month[POOL],VW_RPT_PortfolioReview_6Month[BalanceDate]), VW_RPT_PortfolioReview[CATEGORY1]<>"Closed with remaining shortfall" ) )
I am confused when to use Sumx or Group by , why SumX is not grouping by Row
Attempt at SUMX
CALCULATE(SUMX(FILTER(VW_RPT_PortfolioReview_6Month,VW_RPT_PortfolioReview_6Month[CATEGORY1] <>"Closed with remaining shortfall" && VW_RPT_PortfolioReview_6Month[CATEGORY1]<>"Closed Full Redemption"
), VW_RPT_PortfolioReview_6Month[CurrentBalance]),ALLEXCEPT(VW_RPT_PortfolioReview_6Month,VW_RPT_PortfolioReview_6Month[POOL]))
Attempt at Group BY
Solved! Go to Solution.
Hi
Very happy to see the issue solved by yourself.
It is very generous of you to share the solution here so that other prople may benefit from this thread.
Best Regards
Maggie
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |