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 Community,
I'm trying to subtract the subtotals in my matrix so my grandtotal shows the correct value:
I.E. the grandtotal has to show 59.736,97; 101.921,30; etc.
Help would be greatly appreciated! 🙂
Thanks in advance and cheers,
Dexter
Solved! Go to Solution.
For anyone wondering, I figured it out by using the next formula:
Actueel W&V =
VAR Omzet = CALCULATE (SUM ('Financiële Data'[Bedrag]); FILTER('Financiële Categorieën';'Financiële Categorieën'[Subsubcategorie] = "Omzet"))
VAR Kosten = CALCULATE (SUM('Financiële Data'[Bedrag]); FILTER('Financiële Categorieën';'Financiële Categorieën'[Subsubcategorie] = "Kosten"))
RETURN
(Omzet - Kosten)
Cheers!
Hi Hijau ,
I recommend you yo use a table visual instead, create a calculate column and use DAX formula like this:
Grandtotal = CALCULATE ( SUM ( table[value] ), FILTER ( table, table[subcategorie] = "Uitgaven" && table[date] = EARLIER ( table[date] ) ) ) - CALCULATE ( SUM ( table[value] ), FILTER ( table, table[subcategorie] = "Omzet" && table[date] = EARLIER ( table[date] ) ) )
Regards,
Jimmy Tao
Hi Jimmy!
Thanks for your reply :). I can't make it a table though since I would lose my drill options and those are important for the P&L I'm trying to make..
Best regards,
Dexter
For anyone wondering, I figured it out by using the next formula:
Actueel W&V =
VAR Omzet = CALCULATE (SUM ('Financiële Data'[Bedrag]); FILTER('Financiële Categorieën';'Financiële Categorieën'[Subsubcategorie] = "Omzet"))
VAR Kosten = CALCULATE (SUM('Financiële Data'[Bedrag]); FILTER('Financiële Categorieën';'Financiële Categorieën'[Subsubcategorie] = "Kosten"))
RETURN
(Omzet - Kosten)
Cheers!
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 |
---|---|
114 | |
100 | |
81 | |
70 | |
62 |
User | Count |
---|---|
148 | |
116 | |
104 | |
90 | |
65 |