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.
@Jamey This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
@Greg_Deckler Hi Greg, I'm still struggling with this. Below is an example:
@Jamey So, if New Customers Yes/No is a measure and it returns the right figure in your visual then construct the following measure and use it in your table visual instead. Keep the original measure but it doesn't need to be in the table.
New Customers Yes/No Total =
VAR __Table = SUMMARIZE('Table',[CUST_ID],"__Value",[New Customers Yes/No])
RETURN
IF(HASONEVALUE('Table'[CUST_ID]), [New Customers Yes/No], SUMX(__Table,[__Value]))
@Greg_Deckler Thanks Greg that worked at the CUSTID level but when I added a YearMonthID the monthly totals are not correct. What needs to be added for this? Thanks again, I really appreciate you!
@Jamey This is going to require sample data to recreate. Now instead of a simple measure totals problem we are now dealing with MM3TR&R. Plus your measure is using CALCULATE/CALCULATETABLE and Time Intelligence functions so it likely needs reworked as these functions all tend to create havoc. Watch my latest YouTube videos for more on that.
@Greg_Deckler I refactored my Measure to show what the other measures where doing. I have a Slicer that selects the last 1 year of dates from my data and a parameter Slicer (Period) that can select a month up to 24 months (used in the LastRevenue), the default is the last 4 months. This correctly captures which Customers are new but does not total them.
@Greg_Deckler Do you have a specific YouTube video? I found your latest video related to a Better Average Per Category. Are you willing to do a Teams Meeting to better understand my delima? I'm willing to pay!
@Jamey - I would recommend the "Don't Use CALCULATE video but let's give this one more go. This stuff is very hard without sample data and knowing all of the relationships involved and what columns are coming from which tables because it really, really matters when you are using CALCULATE/CALCULATETABLE, etc. versus the way I do it where it tends not to matter.
New Customers Yes/No Total =
VAR __Table = SUMMARIZE('Table',[CUST_ID],"__Value",[New Customers Yes/No])
RETURN
SWITCH(TRUE(),
ISINSCOPE('Table'[YearMonthID]),SUMX(__Table,[__Value]),
ISINSCOPE('Table'[CUST_ID],[New Customers Yes/No]),
SUMX(__Table,[__Value])
)
Thanks for the reply, I'm still not able to get either of your suggested solutions to work. I either get no total or an extremely high total. I need a more straight forward answer for Dummy's. 🙂
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 |
---|---|
56 | |
27 | |
23 | |
15 | |
11 |
User | Count |
---|---|
76 | |
58 | |
46 | |
17 | |
12 |