Forum Discussion
Required Dax formula for below table.
- 1 year ago
Hello Harish85,
I have reproduced your scenario in Power BI Desktop using the sample data you provided. I implemented a DAX formula to filter the table as per your requirement showing only VTWEG 11 for CUSTOMER_IDs with multiple VTWEG values (e.g: 11, 13, 15), while keeping all rows for CUSTOMER_IDs with a single VTWEG value.
I got the expected output based on your description:
For your reference, I have attached a .pbix file containing the solution, including the sample data and the implemented DAX formula. You can download it, open it in Power BI Desktop, and explore the FilteredSalesData table to see the results.Best regards,
Ganesh Singamshetty
Sorry your formula is working there is a small change in the requirement, below is the example ,in below table there are three rows, but we should shown only VTWEG 11 VALUES.
| ZZ_KUNAG | VKORG | VTWEG | ZZ_PARTNER_TYPE | CUSTOMER_ID |
| C240011427 | 2401 | 11 | RE | C240011427 |
| C240011427 | 2401 | 13 | RE | C240011427 |
| C240011427 | 2401 | 15 | RE | C240011427 |
Hi Harish85 ,
Please try with the below calculated column that helps to choose the minimum VTWEG value.
Thanks.