Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am having difficulty coming with a formula to correct my totals in a table with multiple rows. As an example, in image #1, this is the correct total with only one value in the Row. In Image #2, when I add a date hierarchy, the total is incorrect. Image #3 is the formula I am using.
Can anyone help? Thaks in advance
Image#1
Image #2
image #3
Solved! Go to Solution.
Hi @ysherriff
please try
=
SUMX (
SUMMARIZE ( Campaigns, Campaigns[Campaign Name], 'Date'[Year], 'Date'[Otr-Yr] ),
CALCULATE (
SELECTEDMEASURE (),
CROSSFILTER ( Campaigns[Contact ID], 'Contacts Table'[Contact ID], BOTH )
)
)
Hi @ysherriff
please try
=
SUMX (
SUMMARIZE ( Campaigns, Campaigns[Campaign Name], 'Date'[Year], 'Date'[Otr-Yr] ),
CALCULATE (
SELECTEDMEASURE (),
CROSSFILTER ( Campaigns[Contact ID], 'Contacts Table'[Contact ID], BOTH )
)
)
Perfect. Works perfectly.
Thank you very much 😀
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
11 | |
9 | |
6 |