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.
hi Team,
i have requirement here , Requesting please check and do the needful
First Name | Last name | Sum of Age |
East | pai | 35 |
North | Kiran | 30 |
Ramesh | Kumar | 35 |
South | Yesh | 40 |
West | Lol | 56 |
i Want result is like ----
East Pai , 35
North Kiran ,30
Ramesh Kumar , 35
Solved! Go to Solution.
@krishna_murthy
Below is the DAX code as welll
DAX Code =
SELECTCOLUMNS(
ADDCOLUMNS(
Source,"@Col",
Source[First Name] & ","& Source[Last name] & ","& Source[Sum of Age]
),[@Col] )
screenshot
Let me know if you are looking for pbix file..
Hope it helps
Regards
sanalytics
Hi @krishna_murthy
Follow the below steps to achieve it.
1. Step
Go to Power Query ---> select Add Column ---> click Custom Column ----> Then write the query I wrote below.
Query
-----------
[First Name] &" "& [Last name]&", "&Text.From([Sum of Age])
Result
Hi @krishna_murthy
Follow the below steps to achieve it.
1. Step
Go to Power Query ---> select Add Column ---> click Custom Column ----> Then write the query I wrote below.
Query
-----------
[First Name] &" "& [Last name]&", "&Text.From([Sum of Age])
Result
@krishna_murthy
Use below Power query code for your exact output
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45Wck0sLlHSUSpIzASSxqZKsTrRSn75RSUZQK53ZlFiHkjYACwclJibWgwWL81NLEIoD84vBSuPhMiaQFSHp4IN9snPAZKmZkqxsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"First Name" = _t, #"Last name" = _t, #"Sum of Age" = _t]),
TypeChanged = Table.TransformColumnTypes(Source,{{"Sum of Age", Int64.Type}}),
Output =
Table.FromList(
Table.ToList(
TypeChanged,each Text.Combine( List.Transform(_, each Text.From(_)),","
)
),Splitter.SplitByNothing())
in
Output
screenshot below
Let me know if you are ooking for DAX code or not.
Hope it helps
Regards,
sanalytics
@krishna_murthy
Below is the DAX code as welll
DAX Code =
SELECTCOLUMNS(
ADDCOLUMNS(
Source,"@Col",
Source[First Name] & ","& Source[Last name] & ","& Source[Sum of Age]
),[@Col] )
screenshot
Let me know if you are looking for pbix file..
Hope it helps
Regards
sanalytics
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |