Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
104 | |
69 | |
48 | |
41 | |
34 |
User | Count |
---|---|
164 | |
112 | |
62 | |
54 | |
38 |