DAX for filtering data up to given Year in Power BI Report:

Create MaxDateKey measure in FactFinancial table using below DAX

MaxDateKey = CALCULATE(MAX('Date'[DateKey]), ALLEXCEPT('Date', 'Date'[FYYear]))
Revenue = CALCULATE(sum(FactFinancial[Amount] ),DimAccount[AccountType] = "Income", FILTER(DimDate, DimDate[DateKey] <= [MaxDateKey] ))

All other measure like QoQ and Total Amount you apply below logic
Revenue = CALCULATE(sum(FactFinancial[Amount] ),DimAccount[AccountType] = "Income", FILTER(DimDate, DimDate[FYYear] = max('Date'[FYYear]) )







Comments

  1. Online Casino in Rajasthan | Datta, Kavluru - Kadangpintar
    With a maximum 온카지노 of 5000 rupees, a งานออนไลน์ new online casino will be built in Rupiah and the main thing is the number of players. In the case 1xbet korean of a

    ReplyDelete

Post a Comment

Popular posts from this blog

SSRS Report Design: Best Practices

SSAS OLAP Design - Best Practices

Enable Usage-Based Optimization in SSAS