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
Hi All,
I want a calculated column such that total Count of distinct "WS Id" must divide the total Sum of "Average SPE Scores" corresponding to distinct WS Id as shown in the screenshot. The expected results must be that corresponding to each distinct WS Id in a single row the value of calculated column must be displayed in the same row instead of different rows.
Thanks in Advance !!!
Solved! Go to Solution.
Hi @Anonymous ,
Here are the steps you can follow:
1. Create calculated column.
Flag =
var _Countofdistinct=CALCULATE(DISTINCTCOUNT('Table'[WS Id]),FILTER(ALL('Table'),[GUID]=EARLIER('Table'[GUID])))
var _thetotalSum=SUMX(FILTER(ALL('Table'),'Table'[WS Id]=EARLIER('Table'[WS Id])),[Average SPE Scores])
return
DIVIDE(
_Countofdistinct,_thetotalSum)
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Anonymous ,
Here are the steps you can follow:
1. Create calculated column.
Flag =
var _Countofdistinct=CALCULATE(DISTINCTCOUNT('Table'[WS Id]),FILTER(ALL('Table'),[GUID]=EARLIER('Table'[GUID])))
var _thetotalSum=SUMX(FILTER(ALL('Table'),'Table'[WS Id]=EARLIER('Table'[WS Id])),[Average SPE Scores])
return
DIVIDE(
_Countofdistinct,_thetotalSum)
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@Anonymous ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Appreciate your Kudos.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
12 | |
9 | |
7 |
User | Count |
---|---|
38 | |
32 | |
28 | |
12 | |
11 |