The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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:
but my calculete column doesn't display right vaules. Could you help me?
Solved! Go to Solution.
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
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