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, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
idkwhatimdoing
Frequent Visitor

Show selected parameter fields on cards

I am trying to use the new card visual to display all the values of the parameter fields based on what parameter is selected. I have a simplified sample below, although the measures aren't currently correct. I want the user to select the parameter then the field values and the visual will display those values in the card. then I have added measures as reference labels to each visual showing more metrics about each field value. 

 

I can't figure how to set this up, assuming it's possible. Thank you in advance for any suggestions. 

 

idkwhatimdoing_1-1730760753142.png

 

NB, my firewall won't allow me to access sites like google drive for sharing data, so I haven't figured out where to post my sample file if it's needed. 

2 ACCEPTED SOLUTIONS
v-linyulu-msft
Community Support
Community Support

Thanks for the reply from amitchandak , please allow me to provide another insight:

Hi, @idkwhatimdoing 

Based on my current testing, placing the parameter field directly in the new card visual is not feasible. Here are my findings:

vlinyulumsft_0-1730878995607.png

To better align with your needs, I propose the following solution:

1.Firstly, copy the query in Power Query.

vlinyulumsft_1-1730878995610.png

2.Secondly, modify the column names to match the first row.

vlinyulumsft_2-1730879027330.png

vlinyulumsft_3-1730879027331.png

3.Adjust the new card visual accordingly.

vlinyulumsft_6-1730879063747.png

4.Then, create a measure and modify the following settings for each column.

1 = CONCATENATEX(
    'Table',
    'Table'[Column1],
     UNICHAR(10) 
)
2 = CONCATENATEX(
    'Table',
    'Table'[Column2],
     UNICHAR(10) 
)
3 = CONCATENATEX(
    'Table',
   'Table'[Column3],
     UNICHAR(10) 
)

 

vlinyulumsft_7-1730879131603.png

vlinyulumsft_8-1730879131604.png

5.The final results are as follows:

 

vlinyulumsft_9-1730879154205.png

Of course, you might find other visual objects, such as a table or matrix, to be quite useful as well.

vlinyulumsft_10-1730879154206.png

If you discover any new solutions, we would love for you to share them with us!

 

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

idkwhatimdoing
Frequent Visitor

I was able to find a custom visual that displays the categories in the method I'm seeking: Multi Info Cards. It just doesn't allow as much customization as the built-in new cards visual. So I'm still open to suggestions. 

idkwhatimdoing_0-1731427387131.png

 

View solution in original post

5 REPLIES 5
idkwhatimdoing
Frequent Visitor

I was able to find a custom visual that displays the categories in the method I'm seeking: Multi Info Cards. It just doesn't allow as much customization as the built-in new cards visual. So I'm still open to suggestions. 

idkwhatimdoing_0-1731427387131.png

 

v-linyulu-msft
Community Support
Community Support

Thanks for the reply from amitchandak , please allow me to provide another insight:

Hi, @idkwhatimdoing 

Based on my current testing, placing the parameter field directly in the new card visual is not feasible. Here are my findings:

vlinyulumsft_0-1730878995607.png

To better align with your needs, I propose the following solution:

1.Firstly, copy the query in Power Query.

vlinyulumsft_1-1730878995610.png

2.Secondly, modify the column names to match the first row.

vlinyulumsft_2-1730879027330.png

vlinyulumsft_3-1730879027331.png

3.Adjust the new card visual accordingly.

vlinyulumsft_6-1730879063747.png

4.Then, create a measure and modify the following settings for each column.

1 = CONCATENATEX(
    'Table',
    'Table'[Column1],
     UNICHAR(10) 
)
2 = CONCATENATEX(
    'Table',
    'Table'[Column2],
     UNICHAR(10) 
)
3 = CONCATENATEX(
    'Table',
   'Table'[Column3],
     UNICHAR(10) 
)

 

vlinyulumsft_7-1730879131603.png

vlinyulumsft_8-1730879131604.png

5.The final results are as follows:

 

vlinyulumsft_9-1730879154205.png

Of course, you might find other visual objects, such as a table or matrix, to be quite useful as well.

vlinyulumsft_10-1730879154206.png

If you discover any new solutions, we would love for you to share them with us!

 

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

@v-linyulu-msft, Thank you for your response and the thorough instructions. I like your creative solution. However, I'm not sure how to apply it to my more complex situation. I have many measures that I will need to attach to each category and over 1,000 rows in my real data. I will play around with your suggestions a bit more with my data. Thank you.

amitchandak
Super User
Super User

@idkwhatimdoing , You can get selected filed parameter based on

 

Selected Parameter = maxx(filter(Parameter ,Parameter[Parameter Order] = SELECTEDVALUE(Parameter[Parameter Order])), Parameter[Parameter])

 

 

The based that you still need static measure to get all measure

 

Switch( True(),

[Selected Paramete] ="Category", concatenatex(Values(Item[Category]), [Category], ", ") ,

//Add code for others

 

)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thank you for your response, @amitchandak. I actually do have measures similar to these. (It's always validating to know that I'm on the right track with at least part of my model 🙂!) However it won't give me the categories separately in each card to link to my measures. Perhaps I oversimplified my problem or I'm going about this the wrong way... or both. I will keep playing around with it. Thanks again.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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