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
prasad_08mm
Frequent Visitor

Need to show % Value of last closed period (Pervious Month) in Card/Score Card Visual

Hello All,

 

I Need to show % Value of last closed period (Pervious Month) in Card/Score Card Visual

For example - If I run the report for Postin Period - 003/March the score card should show PP - 002/feb i.e. 100% , like wise  if run the report for PP - 002/Feb the scroe card should show PP-001/Jan i.e. 75.45% 

prasad_08mm_0-1678701173999.png

Please guide 

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @prasad_08mm 

 

You can try the following methods.
Create a new column:

FYPP = [FY]&[PP]

vzhangti_0-1678949848197.png

Measure:

Pervious Month = 
Var _select=SELECTEDVALUE('Table'[FYPP])
Var _Pre=CALCULATE(MAX('Table'[FYPP]),FILTER(ALL('Table'),[FYPP]<_select))
Return
CALCULATE([% Value],FILTER(ALL('Table'),[FYPP]=_Pre))

vzhangti_1-1678950065582.png

Result:

vzhangti_2-1678950084544.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

3 REPLIES 3
v-zhangti
Community Support
Community Support

Hi, @prasad_08mm 

 

You can try the following methods.
Create a new column:

FYPP = [FY]&[PP]

vzhangti_0-1678949848197.png

Measure:

Pervious Month = 
Var _select=SELECTEDVALUE('Table'[FYPP])
Var _Pre=CALCULATE(MAX('Table'[FYPP]),FILTER(ALL('Table'),[FYPP]<_select))
Return
CALCULATE([% Value],FILTER(ALL('Table'),[FYPP]=_Pre))

vzhangti_1-1678950065582.png

Result:

vzhangti_2-1678950084544.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

 

prasad_08mm
Frequent Visitor

I tried with the below  DAX  but it is showing blank

 

last_month_sales =
    var current_month= MONTH(TODAY())
        return  
            CALCULATE(
                        [FA W6],
                        FILTER('********) - Test',MONTH('***** - Test'[Posting period.Posting period Level 01])=current_month ))
prasad_08mm
Frequent Visitor

please reply community

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.