Forum Discussion
Writing a more efficient DAX measure
- 9 years ago
Mr. Matt ,
Try this one surely it will help you , if not let me know i will help u
Weighted Question = var team_Manger = 'Question Answer'[Team Member]
var Total_Hours = CALCULATE(SUM('Question Answer'[Number of Hours]),FILTER(ALL('Question Answer'),'Question Answer'[Team Member]=team_Manger))
return ('Question Answer'[Number of Hours]/Total_Hours) * 'Question Answer'[Question 1 Value]
Create as Calculated Column
Cal ColumnOutput
Please help me to solve this
Select Count(distinct) , Col From Table
Group by Col
i am not getting result with below expression
=SUMMARIZE(Table , Table[Col] ,
Countrows(DISTINCT(table[Col])))
How to code the below SQL in DAX / Measure / New column in PowerBI Report ? Please help.
SELECT COL2, COUNT(COL1) FROM TABLE1 Group By COL2