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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
WaelTalaat79
Helper I
Helper I

measurement of LW not work

Dears,

i face an issue in calculating the total CP value of last week figures knowing that the data dates is a weekly data

 

WaelTalaat79_0-1706722366719.png

 

3 ACCEPTED SOLUTIONS

Hi @WaelTalaat79 
This is a screenshot, nut it seems a standard week vs the previous scenario.
please refer to the linked tutorials:
https://www.youtube.com/watch?v=YuiUymUP5Kc

https://www.youtube.com/watch?v=7_Q5yaU-Fjc

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

Anonymous
Not applicable

Hi, @WaelTalaat79 

Based on your question, I think the problem may be in 'EOL Follow up'[Date]='EOL Follow up'[Date]-7, you can make changes to this string of code.

The modification I made was to display the value of 1/22/2024 so that the Measure value can be displayed properly, this is my DAX code:

Measure = 
VAR _AA = MAXX(ALLSELECTED(EOL),'EOL'[Date])
RETURN SUMX(
    FILTER(
        EOL,
        EOL[Date] = _AA-7
    ),
    EOL[TOTAL CP VALUE]
)

vyilongmsft_0-1706756096532.png

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

How to Get Your Question Answered Quickly 

 

 

 

Best Regards

Yilong Zhou

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

Anonymous
Not applicable

Hi @WaelTalaat79 ,

According to the pbix file you provided, I have modified the DAX code for Measure.

Total LW new = 
VAR _AA = MAXX(ALLSELECTED('EOL Follow up'),'EOL Follow up'[Date])
VAR _currentItem = SELECTEDVALUE('EOL Follow up'[ITEM])
RETURN SUMX(
    FILTER(
        ALL('EOL Follow up'),
        'EOL Follow up'[Date] = _AA-7
        &&
        'EOL Follow up'[ITEM]=_currentItem
    ),
    'EOL Follow up'[TOTAL CP VALUE]
)

So that Measure can get the relevant data.

vyilongmsft_0-1706780714149.png

Use the all(), allselected(), allexcept(), and removefilter() functions to remove unwanted filtering effects.

Here's a blog about contextual filtering, which you can start with the highlights: Understand the Filter Context and How to Control i... - Microsoft Fabric Community

 

 

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Hi, @WaelTalaat79 

Based on your question, I think the problem may be in 'EOL Follow up'[Date]='EOL Follow up'[Date]-7, you can make changes to this string of code.

The modification I made was to display the value of 1/22/2024 so that the Measure value can be displayed properly, this is my DAX code:

Measure = 
VAR _AA = MAXX(ALLSELECTED(EOL),'EOL'[Date])
RETURN SUMX(
    FILTER(
        EOL,
        EOL[Date] = _AA-7
    ),
    EOL[TOTAL CP VALUE]
)

vyilongmsft_0-1706756096532.png

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

How to Get Your Question Answered Quickly 

 

 

 

Best Regards

Yilong Zhou

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

No, it is not work, how can i attach a sample file

 

EOL test.pbix

Anonymous
Not applicable

Hi @WaelTalaat79 ,

According to the pbix file you provided, I have modified the DAX code for Measure.

Total LW new = 
VAR _AA = MAXX(ALLSELECTED('EOL Follow up'),'EOL Follow up'[Date])
VAR _currentItem = SELECTEDVALUE('EOL Follow up'[ITEM])
RETURN SUMX(
    FILTER(
        ALL('EOL Follow up'),
        'EOL Follow up'[Date] = _AA-7
        &&
        'EOL Follow up'[ITEM]=_currentItem
    ),
    'EOL Follow up'[TOTAL CP VALUE]
)

So that Measure can get the relevant data.

vyilongmsft_0-1706780714149.png

Use the all(), allselected(), allexcept(), and removefilter() functions to remove unwanted filtering effects.

Here's a blog about contextual filtering, which you can start with the highlights: Understand the Filter Context and How to Control i... - Microsoft Fabric Community

 

 

Nice, thank you
but why the total measurement column total not appear 

You can save it on some kind of drive and share via link.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Ritaf1983
Super User
Super User

Hi @WaelTalaat79 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

WaelTalaat79_1-1706723163684.png

 

Hi @WaelTalaat79 
This is a screenshot, nut it seems a standard week vs the previous scenario.
please refer to the linked tutorials:
https://www.youtube.com/watch?v=YuiUymUP5Kc

https://www.youtube.com/watch?v=7_Q5yaU-Fjc

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.