Forum Discussion

asdf1608's avatar
asdf1608
Icon for Helper V rankHelper V
3 years ago
Solved

To get the values in same cell

I am trying to achieve something which is possible in Tableau.

In tableau we can place two values in the same cell(as below)

Is this possible in Power BI. Is there any DAX need to be written to achieve this?
In Power BI I'm getting like this

 

Kindly help in this.

 

Thanks in advance.

 

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi asdf1608 ,

    I have created a simple sample, please refer to it to see if it helps you.

    Create a measure.

    Measure = "profit"&":"& MAX('Table'[profit])
    &"           "&         
    "quantity"&":"&MAX('Table'[quantity])

    How to Get Your Question Answered Quickly 

     

    If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

     

    Best Regards
    Community Support Team _ Polly

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

2 Replies

  • tamerj1's avatar
    tamerj1
    Icon for Community Champion rankCommunity Champion

    Hi asdf1608 

    Yes you can use a measure 

    CONCATENATEX ( VALUES ( 'Table'[Column] ), 'Table'[Column], UNICHAR ( 10 ) )

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi asdf1608 ,

    I have created a simple sample, please refer to it to see if it helps you.

    Create a measure.

    Measure = "profit"&":"& MAX('Table'[profit])
    &"           "&         
    "quantity"&":"&MAX('Table'[quantity])

    How to Get Your Question Answered Quickly 

     

    If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

     

    Best Regards
    Community Support Team _ Polly

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