Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (11.1k points)
Here,I had a measure which compare forecast vs sales in Power Bi,here is the logic which I have created which has logic at the beginning of the Jan 2018 which shows the sales for the whole year,and here,how can I compare forecast vs sales

1 Answer

0 votes
by (22.5k points)

Use the following measures:

Forecast Qty:=CALCULATE ( 
    SUM ( SourceTable[Qty] ),
    SourceTable[Type] = "Forecast"
)
Sold Qty:=CALCULATE ( 
    SUM ( SourceTable[Qty] ),
    SourceTable[Type] = "Sold" 

) 

Sales % Forecast:=DIVIDE ( 
    [Sold Qty],
    [Forecast Qty],
    BLANK() 

) 

and your following visualization looks like this

example output

Want to learn more about Power BI? Check out today: Power BI course      

Related questions

0 votes
1 answer
0 votes
1 answer
asked Mar 3, 2021 in BI by Chris (11.1k points)
0 votes
1 answer
asked Dec 13, 2020 in BI by Chris (11.1k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...