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
johnmelbourne
Helper V
Helper V

It seems like a simple caluclated column but ....

I have this table in a report. Both columns come from different tables but are related in the model, but not directly (that is, through another table).

 

Capture.PNG

 

I want to create a calculated column such that

IF DESCRIPTION = Low Density Area  AND Spectrum_location_CC = 14.5 to 31.3 GHz then return 100 OR

IF DESCRIPTION = Medium Density Area  AND Spectrum_location_CC = 14.5 to 31.3 GHz then return 200 OR

 

and so on.

 

Any suggestions how this might be achieved? As the columns are not from a directly related table, I am having issues, but I figure it should be possible as I can produce the data in a table, and should be able to work it out, but I can't at the moment.

 

Any assistance greatly appreciated.

 

Regards

John

 

1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @johnmelbourne 

You may try to create a measure like below.Then drag it into the table visual.

Measure =
IF (
    MAX ( Table1[DESCRIPTION] ) = "Low Density Area"
        && MAX ( Table3[Spectrum_location_CC] ) = "14.5 to 31.3 GHz",
    "100 OR",
    IF (
        MAX ( Table1[DESCRIPTION] ) = "Medium Density Area"
            && MAX ( Table3[Spectrum_location_CC] ) = "14.5 to 31.3 GHz",
        "200 OR"
    )
)

Regards,

Community Support Team _ Cherie Chen
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-cherch-msft
Employee
Employee

Hi @johnmelbourne 

You may try to create a measure like below.Then drag it into the table visual.

Measure =
IF (
    MAX ( Table1[DESCRIPTION] ) = "Low Density Area"
        && MAX ( Table3[Spectrum_location_CC] ) = "14.5 to 31.3 GHz",
    "100 OR",
    IF (
        MAX ( Table1[DESCRIPTION] ) = "Medium Density Area"
            && MAX ( Table3[Spectrum_location_CC] ) = "14.5 to 31.3 GHz",
        "200 OR"
    )
)

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi

 

first of all RELATED works also across several tables, as long as there is a relationship with the correct arrows directions.
So if
A <- B <- C

you can write, in A table, REALTED(column in C)

 

Second, if you don't have a realtionship you can still use LOOKUPVALUE to find specific values anywhere in the model

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.