Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
25 | |
18 | |
17 | |
16 | |
16 |
User | Count |
---|---|
28 | |
27 | |
18 | |
14 | |
13 |