Forum Discussion
erhan_79
6 years agoPost Prodigy
Calculating Rate
Hi there ; İ would like to calculate below issue could you pls help me , let me explain pls sceneraio first : i have a table as below which one you can see at left below ; i would like to c...
- 6 years ago
Hello erhan_79
Give this a try.
Rate = VAR _Date = MAX ( YourTable[Report Date] ) VAR _Act = CALCULATE ( COUNTROWS(YourTable), YourTable[Report Date] = _Date, YourTable[Status] = "Actual Month" ) VAR _ActNext = CALCULATE ( COUNTROWS(YourTable), YourTable[Report Date] = _Date ) RETURN DIVIDE ( _Act, _ActNext )
jdbuchanan71
6 years agoSuper User
Hello erhan_79
Give this a try.
Rate =
VAR _Date = MAX ( YourTable[Report Date] )
VAR _Act = CALCULATE ( COUNTROWS(YourTable), YourTable[Report Date] = _Date, YourTable[Status] = "Actual Month" )
VAR _ActNext = CALCULATE ( COUNTROWS(YourTable), YourTable[Report Date] = _Date )
RETURN
DIVIDE ( _Act, _ActNext )