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 colleagues! Looks like I have a common issue with = SELECTEDVALUE returning only single value, whereas I need multiple values shown:
Are there any ways to simplify the solutins? I met some with using CONCATENATEX function, but that doesn't quite work:
I would be grateful if you help me with this trouble.
Solved! Go to Solution.
correct, you cannot filter if you use CONCATENATEX.
For what you want to achieve you need something close to this
VAR _Selection = VALUES('NEWDataMonth Current'[Month])
VAR CurrentCost =
IF(
ISBLANK(SELECTEDVALUE('NEWDataMonth Current'[Month])),
CALCULATE(
[MainSumCost],
FILTER(
'DatabaseNEW',
'DatabaseNEW'[Source] = SELECTEDVALUE('NEWDataVersion Current'[Source])
&& 'DatabaseNEW'[Date].[Month] IN _Selection
)
),
CALCULATE(
[MainSumCost],
FILTER(
'DatabaseNEW',
'DatabaseNEW'[Source] = SELECTEDVALUE('NEWDataVersion Current'[Source])
&& 'DatabaseNEW'[Date].[Month] = SELECTEDVALUE('NEWDataMonth Current'[Month])
)
)
)
RETURN
CurrentCost
correct, you cannot filter if you use CONCATENATEX.
For what you want to achieve you need something close to this
VAR _Selection = VALUES('NEWDataMonth Current'[Month])
VAR CurrentCost =
IF(
ISBLANK(SELECTEDVALUE('NEWDataMonth Current'[Month])),
CALCULATE(
[MainSumCost],
FILTER(
'DatabaseNEW',
'DatabaseNEW'[Source] = SELECTEDVALUE('NEWDataVersion Current'[Source])
&& 'DatabaseNEW'[Date].[Month] IN _Selection
)
),
CALCULATE(
[MainSumCost],
FILTER(
'DatabaseNEW',
'DatabaseNEW'[Source] = SELECTEDVALUE('NEWDataVersion Current'[Source])
&& 'DatabaseNEW'[Date].[Month] = SELECTEDVALUE('NEWDataMonth Current'[Month])
)
)
)
RETURN
CurrentCost
Thank you! That worked perfectly. Have a nice day!
DAX measure can only retrieve scalar values. CONCATENATEX is the way to go
This is the pattern to follow:
SelectedMonths =
CONCATENATEX(
VALUES('DateTable'[MonthName]),
'DateTable'[MonthName],
", ",
'DateTable'[Date]
)
Thank you! The issue is, I need to use multiple month to filter other measure:
But I can't filter with CONTENCATEX function. If possible, share your ideas on this one. Here's the dax code for my measure:
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 |
---|---|
80 | |
76 | |
60 | |
36 | |
33 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |