Forum Discussion
Another sub total issue
So typically in cases like this I use the following method. First, keep your measure the way it is and then write this measure and use this measure in your visualization:
My Measure in DAX 1 =
VAR __table = SUMMARIZE('Table',[ClassicLoanName],[Loan balance],[Share%],[Count rows],"__Value",[My Measure in DAX])
RETURN
IF(HASONEVALUE([ClassicLoanName]),[My Measure in DAX],SUMX(__table,[__Value]))
Basically, you recreate the visualization in memory using SUMMARIZE and your original measure and then you just sum up the column, which is what you are expecting to happen in the table visualization but doesn't.
Thanks Greg.
I'm not sure how to make it work as the [Loan balance] data is coming from the factTable, Can I mix tables in the variable?
- Greg_Deckler7 years agoCommunity Champion
Well, details tend to matter. Should be solvable but would need exact information on your scenario.
Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
- v-danhe-msft7 years agoMicrosoft Employee
Hi jaco1951,
Could you please share your pbix file if possible? You could upload your file to your Onedrive or Dropbox and send the link to me,
Regards,
Daniel He
- jaco19517 years agoHelper III
I made a workaround. It is tricky to recrate the dataset as it is very large in both amount of tables and rows of data. And all the data is sensitive.... Otherwise I would be happy to share it.
Thanks anyway.
Br Espen