Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
riadorra
Helper II
Helper II

Sales from new products

Hi,

I need to visualize the sales of new products by month, can anyone help me?

 

My table contain the sales per product per month. (i don't have the day info)

 

I tried to improvise using the quick measure (sales from new custumers but it didn't work well ...

 

thank you

Riad

2 ACCEPTED SOLUTIONS

Hi @riadorra

 

See the attached file. Hope it helps

 

Basically I added a calculated column using formula below that gives sales against a product only if it is the first month for that product. With this column you can get the desired results as shown in the file

 

First Month Sales=
VAR FirstMonth =
    CALCULATE (
        MIN ( Table1[Month/Year] ),
        FILTER (
            ALL ( Table1 ),
            Table1[Product Name] = EARLIER ( Table1[Product Name] )
        )
    )
RETURN
    IF ( Table1[Month/Year] = FirstMonth, Table1[Sales] )

 

 


Regards
Zubair

Please try my custom visuals

View solution in original post

Hi @riadorra,

 

You may refer to my solution here.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

9 REPLIES 9
v-huizhn-msft
Employee
Employee

Hi @riadorra,

It's hard to provide detailed solutions without sample table, could you please share your data and list expected result for further analysis?

Best Regards,
Angelia

Hi Angelia,

 

Please clik on the link bellow, it's a example off my data and the expected results.

 

Please let me know if you need anything else. 

 

https://www.dropbox.com/s/ijkk4dggkz1158x/Data%20Example.xlsx?dl=0

 

Thank you

Riad 

Hi @riadorra,

 

You may refer to my solution here.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you Mathur!

You are welcome @riadorra


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @riadorra

 

See the attached file. Hope it helps

 

Basically I added a calculated column using formula below that gives sales against a product only if it is the first month for that product. With this column you can get the desired results as shown in the file

 

First Month Sales=
VAR FirstMonth =
    CALCULATE (
        MIN ( Table1[Month/Year] ),
        FILTER (
            ALL ( Table1 ),
            Table1[Product Name] = EARLIER ( Table1[Product Name] )
        )
    )
RETURN
    IF ( Table1[Month/Year] = FirstMonth, Table1[Sales] )

 

 


Regards
Zubair

Please try my custom visuals

Thank you Muhammad!

erik_tarnvik
Solution Specialist
Solution Specialist

Hi Erik,

It's very long to search ... could you please give me a clue where can I find it?

Thank you.

Riad

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.