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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Regulated Product - calculate column

Hello, 
I have an issue with calculate column in DAX. 
I want to show which asset in my report it's regulated asset. 
I have 2 seperate tables. In fisrt table "SOURCE" I have an information about all assets. 
In second table "REGULATED ASSET" I have only an information about regulated asset
I need to created calculate column in table "SOURCE" which will tell me which asset is regulated. 

I need to take into account too following stuffs:

Each row has to filled 3 columns:

  • asset name
  • asset status
  • asset class (yellow columns)

    or this 3 columns:
  • name
  • fqdn
  • IP (green columns)
    I can only count values if I have complete values at first in columns: asset name, asset status, asset class and if I don't have values in this 3 columns I take into account this 3 columns: name, fqdn, IP.
    dgadzinski_0-1672672619919.png
    and then I need to check which of the above assets are regulated and I want to create a calculated column that will give me these values like this one:
    dgadzinski_2-1672672842748.png

    but my calculete column doesn't display right vaules. Could you help me? 

    https://uewrc-my.sharepoint.com/:u:/g/personal/170361_student_ue_wroc_pl/EeYDwmeUn35NhYCX2We9DZYBfUp... 
1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

You can try to use the following calculated column formula if it suitable for your requirement:

REGULATED ASSET =
VAR list =
    CALCULATETABLE (
        VALUES ( 'REGULATED ASSET'[GROUP_NAME] ),
        FILTER (
            'REGULATED ASSET',
            'REGULATED ASSET'[NAME] = EARLIER ( Source[NAME] )
                || 'REGULATED ASSET'[NAME] = EARLIER ( Source[ASSET_NAME] )
        )
    )
RETURN
    IF ( COUNTROWS ( list ) > 0, CONCATENATEX ( list, [GROUP_NAME], "," ) )

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

You can try to use the following calculated column formula if it suitable for your requirement:

REGULATED ASSET =
VAR list =
    CALCULATETABLE (
        VALUES ( 'REGULATED ASSET'[GROUP_NAME] ),
        FILTER (
            'REGULATED ASSET',
            'REGULATED ASSET'[NAME] = EARLIER ( Source[NAME] )
                || 'REGULATED ASSET'[NAME] = EARLIER ( Source[ASSET_NAME] )
        )
    )
RETURN
    IF ( COUNTROWS ( list ) > 0, CONCATENATEX ( list, [GROUP_NAME], "," ) )

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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