Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Dear all,
First, I would like to thank this amazing community for all the help you have provided me so far! Only recently have I started using DAX for in depth analysis and I have learned so many things from here!
Secondly, I have encountered an issue with the grand total of a measure which is not being reflected correctly. I will provide more details:
Fact Table. Employee ID | Fact table. WORKING_HOURS | Dim Table. HOURS_PER_DAY | Measure: WORKING_DAYS |
1 | 168 | 8 | 168/8 = 21 |
2 | 150 | 8 | 18.75 |
3 | 140 | 7.5 | 18.66 |
4 | 130 | 9 | 14.44 |
5 | 120 | 8 | 15 |
6 | 110 | 7.5 | 14.66 |
GRAND TOTAL | 818 | 48 - irrelevant total | The grand total here is: 818/48 = 17.04, but this is not correct. It should be the total of the values above: 21 + 18.75 + ... + 14.66 = 102.51 |
What I want to achieve: I want the Grand Total to calculate the sum of the column. Now, it`s been almost a week since I tried to work this out and I`ve read a lot of solutions online, which did not work, I am definetly doing something wrong 😢 The latest version of my measure is as follows:
I think that what is messing up, is the FACT & DIM tables, perhaps I am not specifiying them correctly in the formula? I am not sure really, but I have a feeling that I confused DAX with the tables, hence to why I have presented them in the beginning.
P.S. What I am trying to achieve was done in Power Query, but I want to do this in DAX as I want to expand the knowledge 😥
Solved! Go to Solution.
@DianaF try this measure
Measure 2 =
SUMX ( VALUES ( Table[Employee Id] ), [Measure 1] )
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@DianaF , You can try like
sumx(summarize(Table, Table[Employee ID],"_1",[Measure 1 ]),[_1])
@DianaF try this measure
Measure 2 =
SUMX ( VALUES ( Table[Employee Id] ), [Measure 1] )
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hello sir, thank you for this. It worked. Have a lovely day!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |