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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Glibberg
Regular Visitor

Column on a Dashboard that extracts certain values from data

Hi 

I have two columns: Column1 (integers) and Column2 (dummy variable - 0 or 1).

I have to insert Column3 in my dashboard such that it shows only values in Column1 for which Column2 = 1. 

What is the best way to do it?

There is an example below.

Thanks!

Column1 --- Column2 

100        ----     0

250        ----     1

99          ----     0

10          ----     1

120        ----     1

Table in Power BI Dashboard should show this:

Column3

250

10

120

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Glibberg 

 

You can try the following methods.
Table:

Table 2 = SUMMARIZE(FILTER('Table',[Column2]=1),'Table'[Column1])

vzhangti_0-1666343103692.png

The newly created table is your desired output and can be put directly into the dashboard.

 

Best Regards,

Community Support Team _Charlotte

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-zhangti
Community Support
Community Support

Hi, @Glibberg 

 

You can try the following methods.
Table:

Table 2 = SUMMARIZE(FILTER('Table',[Column2]=1),'Table'[Column1])

vzhangti_0-1666343103692.png

The newly created table is your desired output and can be put directly into the dashboard.

 

Best Regards,

Community Support Team _Charlotte

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

rsbin
Super User
Super User

@Glibberg ,

Easiest way is to use the Filter Pane on the right side.

Drag a Table Visual onto your canvas.

Drag Column1 into the Column well.  Select "Don't Summarize" in the dropdown.

Drag Column2 into the Filter Pane.  Choose Basic Filtering and check the value 1.

rsbin_0-1666278352544.png

Hope this helps you on your way.

Regards,

Helpful resources

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

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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