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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
vijay273162
Helper III
Helper III

Help on Cumulative total and Shifting PQ to CQ

Hi Microsoft Team,

Please refer the link for SAMPLE . pbix file, You can download and refer dummy data used for Clalculation.

 

https://drive.google.com/file/d/1NKtywVBSzqyDpC2xEPAKQ3rFkt8qrj1v/view?usp=sharing

 

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

Hi, @vijay273162 ;

You could only create a measure as follow:

Measure =
CALCULATE (
    SUM ( 'Fact table - Sales'[Sales Amount] ),
    FILTER (
        ALLSELECTED ( 'Fact table - Sales' ),
        [Date] <= MAX ( 'calendar'[Date] )
            && YEAR ( [Date] ) = YEAR ( MAX ( 'calendar'[Date] ) )
            && QUARTER ( [Date] ) = QUARTER ( MAX ( 'calendar'[Date] ) )
    )
)

The final show:

vyalanwumsft_0-1653362919677.png

vyalanwumsft_1-1653362927205.png


Best Regards,
Community Support Team _ Yalan Wu
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

6 REPLIES 6
v-yalanwu-msft
Community Support
Community Support

Hi, @vijay273162 ;

You could only create a measure as follow:

Measure =
CALCULATE (
    SUM ( 'Fact table - Sales'[Sales Amount] ),
    FILTER (
        ALLSELECTED ( 'Fact table - Sales' ),
        [Date] <= MAX ( 'calendar'[Date] )
            && YEAR ( [Date] ) = YEAR ( MAX ( 'calendar'[Date] ) )
            && QUARTER ( [Date] ) = QUARTER ( MAX ( 'calendar'[Date] ) )
    )
)

The final show:

vyalanwumsft_0-1653362919677.png

vyalanwumsft_1-1653362927205.png


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

vijay273162
Helper III
Helper III

I need help to slice the cumulative sales table value by Region slicer. Can you help.

 

Below is the sample .pbix file download link

 

https://drive.google.com/file/d/1HEt9wc_lpqjh8qjThIvYvSpsHLwqxzkC/view?usp=sharing

vijay273162
Helper III
Helper III

Thanks for your reply and checking.

I'm able to find the answer on this issue.

 

Will connect back, if needed help with this sample.

vijay273162
Helper III
Helper III

Hi Ibendlin,

If you download that .pbix file, I have mentioned , to get the

1. measure for shiftin values from Q1 FY22 to Q1 FY23 ( where there is no sales ).

2. Then we need to find the cumulative for that Q1 FY23 value.

 

 


Please show the expected outcome based on the sample data you provided.

lbendlin
Super User
Super User

Thank you for providing the sample data.  It is not clear what you are trying to achieve. Are you asking for help to do Quarter over Quarter To Date comparisons?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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