Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |