Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
)
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
56 | |
55 | |
54 | |
37 | |
29 |
User | Count |
---|---|
77 | |
62 | |
45 | |
40 | |
40 |