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

Top Solution Authors