Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
User | Count |
---|---|
81 | |
77 | |
64 | |
48 | |
45 |
User | Count |
---|---|
103 | |
44 | |
39 | |
39 | |
37 |