Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
@member, I am using the below measure to divide the sum i.e. _FTE by _countRows. The VAR_FTE gives me 9.85. VAR_countRows gives me 10.
I want to see the total of VAR_divFTE as 2.85 i.e. 0.85+1+1. However, it is dividing (=9.85/10) and giving me total as 0.985.
Can someone please suggest what changes needs to be done in VAR_divFTE to get the total of 2.85
NOTE : I am using Power BI dataset as a source here and cannot resolve this issue by creating calculated column, writing a DAX meausre is the only option.
Solved! Go to Solution.
Hi @vishu263
please try
divide_pos =
SUMX ( VALUES ( 'Table'[Position] ), DIVIDE ( [Sum_Pos], [Cnt PoS] ) )
Hi @vishu263
please try
divide_pos =
SUMX ( VALUES ( 'Table'[Position] ), DIVIDE ( [Sum_Pos], [Cnt PoS] ) )
Hi @tamerj1 ,
Where exactly are you suggesting to make this change?
I am putting the text version of the above DAX to make it easier.
Hi @vishu263
Apologies for the late reply. Please try
Pos FTE =
SUMX (
VALUES ( 'Position and People Establishment'[Position] ),
VAR _Table =
CALCULATETABLE ( 'Position and People Establishment' )
VAR _CountRows =
COUNTROWS ( 'Position and People Establishment' )
VAR _FTE =
SUMX ( _Table, 'Position and People Establishment'[Establishment Count] )
VAR _DivFTE =
DIVIDE ( _FTE, _CountRows )
RETURN
_DivFTE
)
Thanks for your response @tamerj1 .
I tried using the above DAX however, it is giving the same total count of 0.985
It should work based on your description and presented visual. Unless both have been over simplified.
User | Count |
---|---|
42 | |
26 | |
21 | |
16 | |
15 |
User | Count |
---|---|
54 | |
35 | |
18 | |
17 | |
15 |