Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello All,
Can someone help me with the DAX command.
I would like to calculate the average of score based on first 2 decimals of my Index Value.Basically the average for O.1, O.2. O.3......
Let me know, how to do this. I am really struggling.
Thanks,
@Anonymous
First, add a column in Power Query: Add Column > Extract > Text Before Delimiter
Choose the options under Advance
The in the Data model, add the following column using DAX
Avg Index Value =
CALCULATE(
AVERAGE(Table1[Value]),
ALLEXCEPT(Table1, Table1[2 Digit Index] )
)
Result
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
11 | |
9 | |
6 |