Forum Discussion
Dynamic slicer based DAX as URL for row value
Hi,
I have a date slicer in my page and a matrix visual that has "Products" as rows and "Regions" as columns with sales as values and it looks like this:
| Product | Asia | Africa | North America | South America | Australia |
| ABC | 1200 | 1200 | 100 | ||
| PQR | 500 | 470 | 500 | 450 | |
| XYZ | 500 | 900 | |||
| DEF | 600 | 800 | 200 |
I need to create a concatenated text (based on the product name and date range that a user selects in the date slicer) and have that URL show up as a column next to the product names.
Is this possible?
Thanks
Nidhi
4 Replies
- amitchandakSuper User
nidhishah , can you share an example. You should be able to create a new column like
New column = [Date] & " " & [Product]
or
New column = format([Date],"YYYYMMDD") & " " & [Product]
- nidhishahFrequent Visitor
I am not able to upload a file here. But a derived column can't be based on a visual filter range AFAIK.
- v-kkf-msftCommunity Support
Hi,
Use the following formula to create measure:
URL = var _max = MAXX( ALLSELECTED('Product'[Date]), 'Product'[Date] ) var _min = MINX( ALLSELECTED('Product'[Date]), 'Product'[Date] ) return CONCATENATEX( 'Product', 'Product'[Product]&" "&CONCATENATE(_min&"-",_max) )However, measure cannot be added to the rows of the matrix, and you can create a separate table visual to display the product and URL.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.