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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Syndicate_Admin
Administrator
Administrator

I can't select Card Title from a created table

Hello I have two cards and I want that according to the year you select appears in the title of the card in this way:

Captura de pantalla 2021-08-24 a las 13.18.04.png

As you can see With one of the cards without problems, selected the annuity attribute from the table.

Captura de pantalla 2021-08-24 a las 13.20.59.png

but for the other card I have created a table of years, and when doing the same, it does not let you select the annuity field, it appears as blurred instead of bold:

Captura de pantalla 2021-08-24 a las 13.24.44.pngCaptura de pantalla 2021-08-24 a las 13.25.07.png

Captura de pantalla 2021-08-24 a las 13.16.27.png

The case I have created another table of months in the same way and if I let select the month. any idea where the problem is?

Greetings and thanks.

1 ACCEPTED SOLUTION

Hi @Aguirre ,

 

I found that! This is a limitation. 


 

  • The field you create for the title must be a string data type. Measures that return numbers or date/time (or any other data type) aren't currently supported.

 Reference: Expression-based titles in Power BI Desktop # Limitations and considerations

 


Therefore, create a measure like so:

Measure = CONVERT(SELECTEDVALUE(Anualidad[Anualidad],2021),STRING)

 

 

Best Regards,

Icey

 

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

6 REPLIES 6
Icey
Community Support
Community Support

Hi @Aguirre ,

 

Please create a measure like below and then use the measure instead of columns.

Measure = SELECTEDVALUE ( 'Anualidad'[Anualidad] )

 

 

Best Regards,

Icey

 

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

Hello, I created the measure:

Year2 = SELECTEDVALUE(Annuity[Annuity])

but it won't let me select, as I mentioned it's a table with years created directly in Power BI.

Captura de pantalla 2021-08-26 a las 8.31.12.png

The new measure works perfectly on a card but I want to put it in the Title of the card.

Captura de pantalla 2021-08-26 a las 8.35.05.png

Thank you

Hi @Aguirre ,

 

I found that! This is a limitation. 


 

  • The field you create for the title must be a string data type. Measures that return numbers or date/time (or any other data type) aren't currently supported.

 Reference: Expression-based titles in Power BI Desktop # Limitations and considerations

 


Therefore, create a measure like so:

Measure = CONVERT(SELECTEDVALUE(Anualidad[Anualidad],2021),STRING)

 

 

Best Regards,

Icey

 

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

Hello, it works perfectly for me. Just one last doubt, about a measure, since I'm not very adept at DAX, "2021" what is it used for?

Hi @Aguirre ,

 

I set "2021" as the returned value when nothing is selected in the slicer. If don't set it, it will show "BLANK()" by default. Just set it according to your needs.


 

PARAMETERS
Term Definition
columnName The name of an existing column, using standard DAX syntax. It cannot be an expression.
alternateResult (Optional) The value returned when the context for columnName has been filtered down to zero or more than one distinct value. When not provided, the default value is BLANK().

 

Reference: SELECTEDVALUE function - DAX | Microsoft Docs 

 


 

Best Regards,

Icey

 

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

OK, understood.

Greetings.

Helpful resources

Announcements
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.