The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi Power BI Community
Happy New Year!
I need some suggestions on how to put DAX calculated measure when we have Actual at Date Level and then Forecast (without date) been appended in same table. The table name is Sales
Below is the table structure showing sample records
We need to create below view in Power BI where aggregated forecast value (by usinig combination of Country and Name) and shown next to rows for Actual data. It is expected that aggregated forecast value will repeat for every date.
Please see below screenshot showing required view. Any code suggestions here for DAX to create measure for Forecast column here please?
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
Actual value measure: =
SUM( Data[Actual Value] )
Forecast measure: =
IF (
NOT ISBLANK ( [Actual value measure:] ) && HASONEVALUE ( Data[City] ),
CALCULATE ( SUM ( Data[Forecast] ), REMOVEFILTERS ( Data[Date] ) )
)
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
Actual value measure: =
SUM( Data[Actual Value] )
Forecast measure: =
IF (
NOT ISBLANK ( [Actual value measure:] ) && HASONEVALUE ( Data[City] ),
CALCULATE ( SUM ( Data[Forecast] ), REMOVEFILTERS ( Data[Date] ) )
)
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
21 | |
12 | |
10 | |
7 |