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
Hello everyone, I am getting this error when I select all in the customer slicer. How should I edit the measure below to avoid this error?
Amount =
VAR yearmonth =
VALUES ( Table1[yearmonth] )
VAR cus =
VALUES ( Table1[customer] )
VAR agent =
CALCULATETABLE(
VALUES ( Table1[customer_id] ) ,
FILTER (
Table1,
Table1[yearmonth] = yearmonth
&& Table1[customer] = cus
)
)
VAR sales =
CALCULATE (
SUM ( sales2[amount] ),
FILTER (
sales2,
sales2[customer_id]
IN agent
&& sales2[yearmonth]
IN yearmonth
&& sales2[channel] = "Bank"
)
)
RETURN
sales
Solved! Go to Solution.
@sonya7 , use in here
VAR agent =
CALCULATETABLE(
VALUES ( Table1[customer_id] ) ,
FILTER (
Table1,
Table1[yearmonth] in yearmonth
&& Table1[customer] in cus
)
)
@sonya7 , use in here
VAR agent =
CALCULATETABLE(
VALUES ( Table1[customer_id] ) ,
FILTER (
Table1,
Table1[yearmonth] in yearmonth
&& Table1[customer] in cus
)
)
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!