Reputation: 340
I'm trying to get Actual Sales per day using DAX howver I can't able to get the Actual Sales Per Day using DAX Expression.
I'm using below DAX to calculate Total No. of days.
b:=CALCULATE(COUNT(DimDate[Date]),DimDate[CY_Year]=YEAR(TODAY()),USERELATIONSHIP(Fact_Sales[Doc_Date],DimDate[Date]))
Please provide the correct formula.
Upvotes: 0
Views: 1243
Reputation: 969
Assuming [a] is a measure in the Data Model then you just create a new measure for Actual Sales Per Day as follows:
c :=
[a] / [b]
If [a] is not already a measure in the Data Model then create it first as follows:
a :=
SUM ( [SalesAmount] )
Upvotes: 0