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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Zakaria_1980
Post Patron
Post Patron

Display information if and only if one selection is selected

Hello,

 

please I have the list of project manager names per project ==> Column Called Project Manager Name

Table called : Tbl1.

 

i've inserted card to display the name of PM once the project name is selected. when we select only 1 project , the name of the project manager is displayed. however, when i selecting multiple projects, it displays always one project name.

i would like please your support, whenever we have multiple selection in project name, the card will be kept empty and if we select only 1 project, it will display the name of the PM.

 

Thanks in advance.

 

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @Zakaria_1980 ,

 

Check the formula below.

Measure = IF(DISTINCTCOUNT('Table'[Project])>1,BLANK(),SELECTEDVALUE('Table'[PM_name]))

5.PNG6.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

5 REPLIES 5
v-jayw-msft
Community Support
Community Support

Hi @Zakaria_1980 ,

 

Check the formula below.

Measure = IF(DISTINCTCOUNT('Table'[Project])>1,BLANK(),SELECTEDVALUE('Table'[PM_name]))

5.PNG6.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

please where i have to put this mesure as filter ?

under Project Name filter or in Project manager name card ?

and what criteria should i choose for this measure please.

please help me with steps to follow.

 

br,

 

Greg_Deckler
Super User
Super User

IF(HASONEVALUE('Table'[Project]),MAX('Table'[Project]),BLANK())

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

I've tried, but I guess you have to support me a little with steps.

for that please find below the screenshot of the mesure that has supported me with:

Mesure.PNG

below also screenshot of my dashboard for the list of project names and where you displyd the name of the project manager:

Project Name list Vs Project Manager Name.PNG

Thank you in advance.

 i've tried but i guess you have to support me a little bit with steps.

for that please find below the screenshot of the mesure that you have supported me with:

Mesure.PNG

 

below also screenshot from my dashboard for the list of project names and where i displyed the name of the project manager:

Project Name list Vs Project Manager Name.PNG

 

 

Thanks in advance.

 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.