Forum Discussion
Need help with Tables
- Nov 27, 2020
Creating PivotTable add data to data model and instead of direct aggregation (sum) use measures like
Paid Interest:= VAR total=SUM(Home_Loan[Interest Paid]) VAR Result=IF(total=0,BLANK(),total) RETURN ResultResult will be like
As a source I took the table to the left. As a comment, please don't add totals manually, Table support total row you may switch on/off and use the same formulas. Otherwise that could be side effect.
Craig Hatmaker , SergeiBaklan Thanks.
Tried the copy+paste instead of Drag, it worked. Worked with SUMIFS too.
Now, I wanted to present the data in graphs using PIVOT. One issue is with the zero value cells. As the number of years i.e, the tenure of the loan is a variable quantity, I want the graph to adapt to it. Basically no zero values in the graph. As you can see a steep fall, is unwanted. The years in the X-axis should be as per the loan tenure. If I change it to 10, the X-axis should reflect the same. How should I do this?
By the way, another variant of formula here
could be
=SUM(INDEX(Home_Loan[Interest Paid],SEQUENCE(12,1,(J16-1)*12)+1))
- SergeiBaklanDec 02, 2020Diamond Contributor
sandipgumtya365 , you are welcome, glad to help
- sandipgumtya365Dec 02, 2020Brass Contributor
SergeiBaklan Thanks a lot. I think my issue is resolved now. Than you. btw, I want to learn DAX, What is the best source or channel to go about. Pl suggest.
Thanks
Sandip.