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
Anonymous
Not applicable

Need help

Hi All,

 

I have a requirement to display the Project Name and Client Name  as per the selected project in the slicer.

Example: in the page i have only one project name slicer  and two card,one for the project name and one for  the clinet name .So  when ever the person slected project name in the slicer  the slected project name needs to be disply in the project name card and with respected client name for the project needs to be displyed in the Client Name Card

 

for the project name displying i am using the below dax

SELECTEDVALUE('Table'[Project Name])
and for the client name i dont have any slicer in the page but those two columns are dependent (coming from the same table)
when the project is not selected in the slicer in the cards it needs to  be display All the project in the project name card and all the clients in the client name card
Can some one please help me on this 
 
Thanks
Nagaraju.g
1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Please try the following measure:

 

 

project name meaure =
IF (
    ISFILTERED ( 'Table'[Project Name] ),
    SELECTEDVALUE ( 'Table'[Project Name] ),
    "All the project"
)

Client name meaure =
IF (
    ISFILTERED ( 'Table'[Project Name] ),
    CALCULATE (
        MAX ( 'Table'[Project Name] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Project Name] = SELECTEDVALUE ( 'Table'[Project Name] )
        )
    ),
    "All the client"
)

 

 

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

 

Best Regards,

Dedmon Dai

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , Not very clear.

 

Try like

 

max('Table'[Client Name])
or
concatenatex(Table,'Table'[Client Name])

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
manikumar34
Solution Sage
Solution Sage

@Anonymous ,

 

Check with the below DAX.

 

SWITCH(TRUE(),SELECTEDVALUE('Table'[Project Name]),Distinct('Table'[Client Name]),"No value selected Slicer ")

 

On card we can pass only single value. So whenver nothing is slected on slicre you can show "No value selected Slicer "

 

If you find this is helpful Please Accept as a Solution and leave a like.

 

Regards, 

Manikumar

 

 





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




Anonymous
Not applicable

Hi Mani kumar,

 

Thanks for the quick replay

 

but the given dax is not giving the results,it showing the below error.

 

 

 

 

 

Thanks!!

NagarajuCapture.PNG

 

Hi @Anonymous ,

 

Please try the following measure:

 

 

project name meaure =
IF (
    ISFILTERED ( 'Table'[Project Name] ),
    SELECTEDVALUE ( 'Table'[Project Name] ),
    "All the project"
)

Client name meaure =
IF (
    ISFILTERED ( 'Table'[Project Name] ),
    CALCULATE (
        MAX ( 'Table'[Project Name] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Project Name] = SELECTEDVALUE ( 'Table'[Project Name] )
        )
    ),
    "All the client"
)

 

 

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

 

Best Regards,

Dedmon Dai

Helpful resources

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