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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to get a column from the table that is filtered by another column?

Now, my calculated table looks like this:

FRU Status intermediate table = 
ADDCOLUMNS(
    VALUES('All Project v2'[Project Name]),
        "Flag", [stat chart]
    )

VALUES() here returns all values of the [Project Name] column.

I need it to return values based on the column 'All Project v2'[Dashboard Created] = "Yes", so if the 'project' has 'dashboard' - return the column.


2 ACCEPTED SOLUTIONS
johnt75
Super User
Super User

FRU Status intermediate table =
ADDCOLUMNS (
    CALCULATETABLE (
        VALUES ( 'All Project v2'[Project Name] ),
        'All Project v2'[Dashboard Created] = "Yes"
    ),
    "Flag", [stat chart]
)

View solution in original post

tamerj1
Super User
Super User

Hi @Anonymous 

please try

FRU Status intermediate table =
SUMMARIZE (
    FILTER ( 'All Project v2', 'All Project v2'[Dashboard Created] = "Yes" ),
    'All Project v2'[Project Name],
    "Flag", [stat chart]
)

View solution in original post

5 REPLIES 5
tamerj1
Super User
Super User

Hi @Anonymous 

please try

FRU Status intermediate table =
SUMMARIZE (
    FILTER ( 'All Project v2', 'All Project v2'[Dashboard Created] = "Yes" ),
    'All Project v2'[Project Name],
    "Flag", [stat chart]
)
Anonymous
Not applicable

I tried it, and it works fine, but it doesn't solve the further problem...

Well, technically, you guys gave me the solution, so...

johnt75
Super User
Super User

FRU Status intermediate table =
ADDCOLUMNS (
    CALCULATETABLE (
        VALUES ( 'All Project v2'[Project Name] ),
        'All Project v2'[Dashboard Created] = "Yes"
    ),
    "Flag", [stat chart]
)
Anonymous
Not applicable

It does work, yes. But a new problem arose: I can't create a relationship with the table I am pulling columns from due to circular dependency.

With Values() it doesn't have CD

use DISTINCT instead of VALUES

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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