Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Fro88er
Helper IV
Helper IV

Remove 100% from table/matrix

I am trying to calculate the [Retention %] ((Hired + Opening Headcount)/ Terms).  When I try and flip the % to a %of 100 it blows-out the future dates with 100.0%.  Is there a way I can stop this, and accuratly calc the totals? I have read and tried a few options with no luck.  Thanks in andvance! 

 

Retention % =
VAR _RenentionVar =
([Hires] + [Opening Headcount])
Return
CALCULATE(DIVIDE([Terms],_RenentionVar)-1)*-1
 
Retention % Net =
VAR _RenentionVar =
([Hires] + [Opening Headcount])
Return
DIVIDE([Terms],_RenentionVar,0)
 
Retention % good x =
VAR _Retention =
([Hires] + [Opening Headcount])
Return
SUMX(
SUMMARIZE(DimCalendar,
DimCalendar[Date].[Month],
DimCalendar[Date].[Quarter],
DimCalendar[Date].[Year], "_1",
DIVIDE([Terms], _Retention)),[_1])

 

RetentionHelp.JPG

1 ACCEPTED SOLUTION
Fro88er
Helper IV
Helper IV

I worked through my own question.

RetentionHelpResponse.JPG

 

Retention % =
VAR _HasOneValue =
IF(HASONEVALUE('FactMonth End HC'[Report Pulled On]), 1, BLANK())
Return
CALCULATE([Retention % Net] - _HasOneValue) * -1

Retention % FINAL =
AVERAGEX(
SUMMARIZE(DimCalendar,
DimCalendar[Date].[Month],
DimCalendar[Date].[Quarter],
DimCalendar[Date].[Year]),
[Retention %])

View solution in original post

1 REPLY 1
Fro88er
Helper IV
Helper IV

I worked through my own question.

RetentionHelpResponse.JPG

 

Retention % =
VAR _HasOneValue =
IF(HASONEVALUE('FactMonth End HC'[Report Pulled On]), 1, BLANK())
Return
CALCULATE([Retention % Net] - _HasOneValue) * -1

Retention % FINAL =
AVERAGEX(
SUMMARIZE(DimCalendar,
DimCalendar[Date].[Month],
DimCalendar[Date].[Quarter],
DimCalendar[Date].[Year]),
[Retention %])

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.