Forum Discussion
DAX
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-p/963216
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
| Project number | Value | Date |
| PF-10329438 | EGP 127,194.00 | 10-24-2022 |
| PF-10358883 | EGP 2,336,586.00 | 10-24-2022 |
| PF-10473993 | EGP 6,462,543.00 | 10-24-2022 |
| PF-11182775 | EGP 338,486.00 | 10-24-2022 |
| PF-38105310 | EGP 2,776.00 | 10-24-2022 |
| PF-10329438 | EGP 127,194.00 | 11-22-2022 |
| PF-10358883 | EGP 2,336,586.00 | 11-22-2022 |
| PF-10473993 | EGP 6,462,543.00 | 11-22-2022 |
| PF-11121349 | EGP 58,393.00 | 11-22-2022 |
| PF-11182775 | EGP 336,577.00 | 11-22-2022 |
| PF-38105310 | EGP 2,776.00 | 11-22-2022 |
| PF-10329438 | EGP 127,194.00 | 12-16-2022 |
| PF-10358883 | EGP 2,336,586.00 | 12-16-2022 |
| PF-10473993 | EGP 6,467,543.00 | 12-16-2022 |
| PF-11121349 | EGP 58,393.00 | 12-16-2022 |
| PF-11182775 | EGP 336,577.00 | 12-16-2022 |
| PF-38105310 | EGP 2,776.00 | 12-16-2022 |
| PF-11121349 | EGP 58,393.00 | 1-19-2023 |
| PF-11182775 | EGP 401,017.00 | 1-19-2023 |
| PF-38105310 | EGP 2,776.00 | 1-19-2023 |
| PF-11121349 | EGP 58,393.00 | 2-2-2023 |
| PF-11182775 | EGP 401,017.00 | 2-2-2023 |
| PF-11121349 | EGP 58,393.00 | 3-2-2023 |
| PF-11182775 | EGP 401,017.00 | 3-2-2023 |
| PF-11121349 | EGP 58,393.00 | 4-4-2023 |
| PF-11182775 | EGP 401,017.00 | 4-4-2023 |
- Ashish_Mathur3 years agoSuper User
Hi,
Clearly show the exact result that you are expecting.
- eghusseinr3 years agoFrequent Visitor
As the list above is a sample, i want to make a dax "Formula" that calcalate the Delta in value from month "M" to previuose Month "M-1" to each project. But Also exclude the first date vaue of that project from this formula.
i.e.
Project Number :PF-10329438 , the first record was in Oct. 2022,
so
Delta November for PF-10329438 = Oct. value - Nov. value
Delta December for PF-10329438 = Nov. value - Dec. valueanother example
PF-XXXXX only have recored in Apr. 2023 ==> to be excluded from formual as long as there are no other records for that project in the list, but next moth if the project "PF-XXXXX" get another record,
so
Delta May for PF-XXXXX = Apr. value - May value