Forum Discussion
increasing day by day table
- 6 years ago
Hi erhan_79 ,
Would you please refer to the dax below based on the pbix file you provided:
New Table = SUMMARIZE ( 'Table A', 'Dimdate'[Date], 'Table A'[Sales Group], "Amount", CALCULATE ( SUM ( 'Table A'[Amount] ), FILTER ( ALLEXCEPT ( 'Table A', 'Table A'[Sales Group] ), 'Table A'[Report Date] <= MAX ( 'Table A'[Report Date] ) && 'Table A'[Billing Type] <> "F2" ) ) )If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
erhan_79 , Try like
New Table = SUMMARIZECOLUMNS('Table A'[Sales Group],Dimdate[Date],"Amount1",[Measure])
hi amitchandak ;
it isworking perfect !
just one more thing i need too ;
imagine that there is one column too on my original table called "billing type" ,there is data " F2" in it , i want that this calculation that we created will not calculate under column " billing type" includes "F2" .. What i need to revise now ?
- v-deddai1-msft6 years ago
Community Support
Hi erhan_79 ,
Would you please refer to the dax below based on the pbix file you provided:
New Table = SUMMARIZE ( 'Table A', 'Dimdate'[Date], 'Table A'[Sales Group], "Amount", CALCULATE ( SUM ( 'Table A'[Amount] ), FILTER ( ALLEXCEPT ( 'Table A', 'Table A'[Sales Group] ), 'Table A'[Report Date] <= MAX ( 'Table A'[Report Date] ) && 'Table A'[Billing Type] <> "F2" ) ) )If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
- amitchandak6 years ago
Super User
erhan_79 , Try like
Measure = CALCULATE(SUM('Table A'[Amount]),FILTER(all(Dimdate),Dimdate[Date]<=MAXX('Table A','Table A'[Report Date])),'Table A'[Billing Type] = "F2")
Or
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.