Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
thomsog1
Frequent Visitor

Populate multi-row card from table which is filtered based on a measure

Hi all,

 

I am fairly new with DAX expressions so apologies if this is an fairly straight forward task.

 

I have 2 tables "Project Scores" and "Project Feedback"

 

"Project Scores"

NameProjectScore
Person #1Project #13
Person #2Project #15
Person #3Project #23
Person #4Project #25
Person #5Project #20
Person #6Project #33
Person #7Project #34
Person #8Project #33
Person #9Project #30
Person #10Project #31

 

"Project Feedback"

ScoreFeedback
0• Comment A
0• Comment B
0• Comment C
1• Comment D
1• Comment E
1• Comment F
2• Comment G
2• Comment H
2• Comment I
3• Comment J
3• Comment K
3• Comment L
4• Comment M
4• Comment N
4• Comment O
5• Comment P
5• Comment Q
5• Comment R

 

I also have a measure called [Average Score] which averages the Score column in "Project Scores". This is filtered based on Project Name using a slicer.

 

I'm trying to create a multi-row card which is populated with the Feedback column depending on the Average Score measure. So for example if my slicer was selecting Project #1, my measure would have a value of 4 and therefore I would want my multi-row card to include the following:

• Comment M

• Comment N

• Comment O

 

I have tried created calculated tables and calculated columns, however I've just learned these are calculated on load and dont apply values from slicers etc. so arent dynamic. Subsequently I've tried, If statements, Filters and other ideas, but since I'm fairly new with DAX, I'm getting nowhere fast and clearly missing something fundamental for what at first glance appears to be a fairly simple problem.

 

Any help at all would be greatly appreciated!

1 ACCEPTED SOLUTION
richbenmintz
Solution Sage
Solution Sage

Hi @thomsog1 ,

 

I you could create a measure that returns the concatentation of the feedback based on the selected projects average score like, 

Feedback Comments = 
CONCATENATEX(FILTER('Project Feedback', [Score] = [Average Score]), [Feedback], UNICHAR ( 10 ))

 I would then use a regular card visual

 

 richbenmintz_0-1611189689627.png

Hope that helps,



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


View solution in original post

2 REPLIES 2
richbenmintz
Solution Sage
Solution Sage

Hi @thomsog1 ,

 

I you could create a measure that returns the concatentation of the feedback based on the selected projects average score like, 

Feedback Comments = 
CONCATENATEX(FILTER('Project Feedback', [Score] = [Average Score]), [Feedback], UNICHAR ( 10 ))

 I would then use a regular card visual

 

 richbenmintz_0-1611189689627.png

Hope that helps,



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


Thanks for the quick reply! That will do what I need.

I had looked at using the FILTER function, but couldnt work out how it actually worked. I guess you're using CONCATENATEX to basically turn it into a single value as opposed to a table (which I think was what a bunch of the errors I was getting back were about)...

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.

Users online (2,560)