This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
I would like to show a value in a card visual only when one row is selected. If more rows are selected I want to show "...".
The value I want to show is a date.
With dax I made the following code: DateSV = SELECTEDVALUE(table[date], "...")
If multiple rows are selected, the dax works. The card visual neatly shows "...". But when I select one row, "#,0.00" appears in the card visual.
Who can help me to optimize my dax code?
Solved! Go to Solution.
Hi @henriwestra ,
Please follow these steps to create a measure:
1. input
Measure 2 = SELECTEDVALUE('Table'[Date])
2.Change its' format as Date format(Short Date)
3. Modify the measure:
Measure 2=
var _count=COUNTX(ALLSELECTED('Table'),[Date])
var _sele=SELECTEDVALUE('Table'[Date])
return IF(_count=1,_sele,"...")
Here is the final output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @henriwestra ,
Please follow these steps to create a measure:
1. input
Measure 2 = SELECTEDVALUE('Table'[Date])
2.Change its' format as Date format(Short Date)
3. Modify the measure:
Measure 2=
var _count=COUNTX(ALLSELECTED('Table'),[Date])
var _sele=SELECTEDVALUE('Table'[Date])
return IF(_count=1,_sele,"...")
Here is the final output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
DateSV =
format(
coalesce(
selectedvalue( 'table'[Date] ),
"..."
),
"yyyy-MM-dd" // you can adjust this
)
@henriwestra Easiest solution:
DateSV2 = IF(HASONEVALUE('Calendar'[Date]),MAX('Calendar'[Date]) & "","...")
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 25 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 36 | |
| 32 | |
| 25 | |
| 23 |