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

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.

Reply
SEPA
Frequent Visitor

Get the current month growth rate from calculated measure is not returning any values

i have a calculated measure which returns the % growth by monthly. I am trying to get only from the current month % growth from Current month - 1. for ex: I want create another measure which returns the current month growth % by using datekey as filter

 

CPUS M MoM% =
var prevmonthcrt = CALCULATE(SUM('fact'[CPUS M]), PREVIOUSMONTH('fact'[datekey]))
return DIVIDE(SUM('Fact'[CPUS M]) - prevmonthcrt, prevmonthcrt)
 
SEPA_0-1664890751953.png

i want to show the current month growth % in a card.

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @SEPA ,

Measures are not visible in a table but all the measures can be seen under the Fields section of the same table name.

In such a situation, there are two ways to solve the issue.

1. Change the measure to a column.

Column =
VAR _1 =
    EDATE ( 'Table'[DATEKEY], -1 )
VAR _date =
    CALCULATE ( SUM ( 'Table'[cpusm] ), FILTER ( 'Table', 'Table'[DATEKEY] = _1 ) )
RETURN
    DIVIDE ( ( 'Table'[cpusm] ) - _date, _date )

2.Put the measure and datekey column into the KPI visual, then close the icons, trend axis and target label. 

vpollymsft_0-1664936355887.png

vpollymsft_1-1664936401965.png

 

Best Regards

Community Support Team _ Polly

 

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-rongtiep-msft
Community Support
Community Support

Hi @SEPA ,

Measures are not visible in a table but all the measures can be seen under the Fields section of the same table name.

In such a situation, there are two ways to solve the issue.

1. Change the measure to a column.

Column =
VAR _1 =
    EDATE ( 'Table'[DATEKEY], -1 )
VAR _date =
    CALCULATE ( SUM ( 'Table'[cpusm] ), FILTER ( 'Table', 'Table'[DATEKEY] = _1 ) )
RETURN
    DIVIDE ( ( 'Table'[cpusm] ) - _date, _date )

2.Put the measure and datekey column into the KPI visual, then close the icons, trend axis and target label. 

vpollymsft_0-1664936355887.png

vpollymsft_1-1664936401965.png

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors