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
Anonymous
Not applicable

Stop Running Total Calculation at Week 3

vg05_0-1667259835302.png

Here is the viz . I dont have date column. Only year, quarter, weeks.

I want that the line should only dislplay till the most recent week.

12 REPLIES 12
aj1973
Community Champion
Community Champion

Hi @Anonymous 

You can use the filter pane to filter out the blank values or in your measure you add a variable using SELECTEDVALUE 

for Fiscal_Week_c

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Anonymous
Not applicable

hi @aj1973  

I tried this but it is not working.

vg05_0-1667264111020.png

 

aj1973
Community Champion
Community Champion

Can you send me a sample of your file please, it would be easier for me.

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Anonymous
Not applicable

It is work-related data and hence cannot do so. 

which function should I explore if you can take a guess?

aj1973
Community Champion
Community Champion

Ok 

You declared the variable but you didn't use it in Return. You need to add MAX(****)= VAR

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Anonymous
Not applicable

vg05_0-1667269081797.png

I tried but looks like it is not working.

 

aj1973
Community Champion
Community Champion

Hi @Anonymous 

Try it like this

aj1973_0-1667302779243.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Anonymous
Not applicable

selected value won't work. I already tried this but didn't work.. Thanks for the help.

aj1973
Community Champion
Community Champion

Best option left for you is to share a sample of your PBIX with the community. Better than to keep on speculating for solutions and waste time.

Good luck

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Hi @Anonymous ,

You can update the formula of the measure [Q3 2022 POS Total] as below and check if it can return the expected result... Please find the details in the attachment.

Q3 2022 POS Total = 
VAR _selweek =
    SELECTEDVALUE ( 'CS Enriched POS'[Fiscal_Week__c] )
RETURN
    CALCULATE (
        SUM ( 'CS Enriched POS'[Q4 2022 POS By Week] ),
        FILTER (
            ALLSELECTED ( 'CS Enriched POS' ),
            'CS Enriched POS'[Fiscal_Week__c] <= _selweek
        )
    )

yingyinr_0-1667285762516.png

 

If the above one can't help you get the desired result, please provide some fake data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

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

I appreciate the help but your solution didn't work. If you can create a measure that shows the running total only until week 12 or less and the line disappears after week 12 in the same file you uploaded that might do the trick. Waiting for the solution.

Anonymous
Not applicable

Can you please share the dax calculation.

Thanks for the help

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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