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
I’m trying to create a calculated table containing salesresults for a specific team like this, using a measure to identify the team:
T_SalesByTeam = CALCULATETABLE(SUMMARIZE('Sales','Sales'[DateID],'Sales'[AccountManager],"Total sales",SUM('Sales'[Sales_Value])),FILTER('Teams',Teams[TeamID]=M_CurrentTeam))
But even though the measure M_CurrentTeam contains the right value (integer 8, put on a card for control), the table does not contain results from more than one team-member. And I suspect not all the results for this one either.
However, if I change the statement and put in 8 as a fixed number,
T_SalesByTeam = CALCULATETABLE(SUMMARIZE('Sales','Sales'[DateID],'Sales'[AccountManager],"Total sales",SUM('Sales'[Sales_Value])),FILTER('Teams',Teams[TeamID]=8))
I get the results from all members in team 8.
There must be something I don’t understand about when or where the measure is calculated.
The measure is created like this and returns the correct value depending on [CurrentUser]
M_CurrentTeam = MAXX(FILTER(Teams,Teams[UserID]=[CurrentUser]),Teams[TeamID]))
Why can't I use this measure in the CALCULATETABLE statement?
Regards,
John
Solved! Go to Solution.
@jmkvalsund , A calculated table can not use a slicer value. means they will take static value of slicer
@jmkvalsund , A calculated table can not use a slicer value. means they will take static value of slicer
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 | |
85 | |
69 | |
53 | |
44 |
User | Count |
---|---|
202 | |
106 | |
100 | |
64 | |
56 |