Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, I want to find the value of sales to new clients this year. My table is Client Name, Invoice Date and Amount and the dates are spread over 2 fiscal years. I simply need a measure (not a standalone table with filters) that I can add to a table showing the value of clients billed in Year 2 but not in year 1, but most importantly provides a total that I can use. I have produced a number of measures which appear to give me the list, but none are able to produce a total. Any help much appreciated...
Solved! Go to Solution.
Hi @Tim_Walker,
Sum sales = IF ( CALCULATE ( COUNTROWS ( data ), FILTER ( ALLEXCEPT ( data, data[Client Name] ), data[Invoice Date].[Year] < YEAR ( TODAY () ) ) ) < 1, CALCULATE ( SUM ( data[Amount] ), ALLEXCEPT ( data, data[Client Name] ) ), BLANK () )
Best regards,
Yuliana Gu
Hi @Tim_Walker,
Sum sales = IF ( CALCULATE ( COUNTROWS ( data ), FILTER ( ALLEXCEPT ( data, data[Client Name] ), data[Invoice Date].[Year] < YEAR ( TODAY () ) ) ) < 1, CALCULATE ( SUM ( data[Amount] ), ALLEXCEPT ( data, data[Client Name] ) ), BLANK () )
Best regards,
Yuliana Gu
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
105 | |
88 | |
74 | |
67 |
User | Count |
---|---|
123 | |
112 | |
95 | |
83 | |
73 |