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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Countx measure visual lags

Hi, I am creating a financial dashboard that shows summarized results based on a transaction level data table. I have several measures to calculate these summarized results. For example, I have measures to calculate the trailing 12 months revenue and EBITDA. I have added a measure to calculate the count of location codes that have a negative trailing 12 month EBITDA. My calculation works, however, from a performance standpoint, it makes my visuals quite slow when I change the region or date slicer. Here is the measure I am currently using that is so slow:

 

Count_Neg_EBITDA_TTM =
COUNTX (
FILTER ( ALLSELECTED ( Actuals[Location] ), [EBITDA_TTM] < 0 ),
[EBITDA_TTM]
)
 
Could anyone point me in the right direction to improve this from a performance standpoint? Any help would be greatly appreciated!
1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @Anonymous 

Please try below measure.

Count_Neg_EBITDA_TTM =
IF (
    [EBITDA_TTM] < 0,
    COUNTX ( ALLSELECTED ( Actuals[Location] ), [EBITDA_TTM] )
)

Or

Count_Neg_EBITDA_TTM =
COUNTROWS ( FILTER ( ALLSELECTED ( Actuals[Location] ), [EBITDA_TTM] < 0 ) )

Regards

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-cherch-msft
Employee
Employee

Hi @Anonymous 

Please try below measure.

Count_Neg_EBITDA_TTM =
IF (
    [EBITDA_TTM] < 0,
    COUNTX ( ALLSELECTED ( Actuals[Location] ), [EBITDA_TTM] )
)

Or

Count_Neg_EBITDA_TTM =
COUNTROWS ( FILTER ( ALLSELECTED ( Actuals[Location] ), [EBITDA_TTM] < 0 ) )

Regards

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.