March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello Super Dax Greatness:
Due to some hectic permutations of productivity Matrix SQL I get a column with
1, 2, 3 and sometimes 4 entries related to 1 encounter. I wish to sum them--can I do that using DAX somehow and splitting the column by the | as shown below?
Thanks!
Solved! Go to Solution.
In the Power Query M editor add custom column:
List.Sum(
List.Transform(
Text.Split([C_time], "|"),
each Number.FromText(_)
)
)
It will work for any splitter it founds (see last row)
Proud to be a Super User!
In the Power Query M editor add custom column:
List.Sum(
List.Transform(
Text.Split([C_time], "|"),
each Number.FromText(_)
)
)
It will work for any splitter it founds (see last row)
Proud to be a Super User!
I tried to split on the | --I could not somehow--then I would simply sum the two columns---
or do you need it?
Is this what you are looking for?
Yes--indeed--to sum them together---It's a complex issue and I had to use the WITHIN GROUP SQL function to make it work.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
80 | |
61 | |
54 | |
40 |
User | Count |
---|---|
191 | |
103 | |
87 | |
60 | |
49 |