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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Pragadeesh
Frequent Visitor

Measure to filter values

Hi All,

 

I'm developing a Power BI dashboard where,

 

  • I currently have a dropdown of client values
  • For a particular client I am looking to create two measures for buttons which shows,
    • All the opportunities for the selected client
    • Open, Won opportunities for the selected client

 

Can someone suggest a measure for this requirment?

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

Hi @Pragadeesh, 

@danextian , thanks for your concern about this case. I tried to create a sample data myself based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution: 

I create a table as you mentioned. It means the dropdown of client values.

vyilongmsft_0-1711345234386.png

Then I create two measures.

All Opportunities = COUNTROWS('Opportunities')
Open Won Opportunities = CALCULATE ( COUNTROWS ( 'Opportunities' ), 'Opportunities'[Status] = "Won" ) 

vyilongmsft_1-1711345784327.png

 

 

 

Best Regards

Yilong Zhou

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

 

 

View solution in original post

2 REPLIES 2
v-yilong-msft
Community Support
Community Support

Hi @Pragadeesh, 

@danextian , thanks for your concern about this case. I tried to create a sample data myself based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution: 

I create a table as you mentioned. It means the dropdown of client values.

vyilongmsft_0-1711345234386.png

Then I create two measures.

All Opportunities = COUNTROWS('Opportunities')
Open Won Opportunities = CALCULATE ( COUNTROWS ( 'Opportunities' ), 'Opportunities'[Status] = "Won" ) 

vyilongmsft_1-1711345784327.png

 

 

 

Best Regards

Yilong Zhou

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

 

 

danextian
Super User
Super User

Hi @Pragadeesh ,

 

Please provide more context, workable sample data and your expected result from that data. Refer to this sticky post as a guide on how  to get better answers  - https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/td-p/144... 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.