Forum Discussion
Filters won't work for visuals from calculated tables
- 8 years ago
Hi danextian, I just figured out how to calculate that. Firstly, I created a measure to calculate the ActiveDays/PolicyCount for each date and bucket. Next, I transformed the diagonal values into row values by using a new row index. Finally, I used the DAX "SUMX(VALUES(Table[date]), [Measure])" to calculate the SUM of each row and got what I need. Thanks, though. :smileyhappy:
Hi dralexandero,
Would you mind attaching an Excel file of your sample table or pasting a HTML table instead of an image?
- dralexandero8 years agoFrequent Visitor
Hi danextian, attached is the sample csv file with 2000 rows. Thanks.
https://drive.google.com/file/d/1e1gJ0OXEp--c_QMaDxLVKH_zVidAL5Pt/view?usp=sharing
- danextian8 years ago
Super User
Hi dralexandero, Not sure if this is the solution you're looking for but this might help.
https://drive.google.com/open?id=14tCau_ehtEA6606v2sJHOC2tEUpn27tz
- dralexandero8 years agoFrequent Visitor
Hi danextian, thanks for your help. Your solution is very close to what I want - the sum of numbers in each row of the table from your screenshot. Currently, the row subtotal in the matrix is not a simple sum of each number, but a calculation based on the total active days divided by the total policy counts. In other words, I'm wondering if we can have a measure to calculate the SUM(active days)/SUM(policy counts) for each bucket and each month first (numbers in your table), then we could again calculate the sum of these numbers for each month (sum of row total).