Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe'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
Dears,
i face an issue in calculating the total CP value of last week figures knowing that the data dates is a weekly data
Solved! Go to Solution.
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
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]
)
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.
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.
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
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]
)
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.
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.
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.
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
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 72 | |
| 70 | |
| 39 | |
| 34 | |
| 23 |