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
Anonymous
Not applicable

Limit of sold product per day

Hello,

I have this example of 2 tables, where the first one is number of products sold per day.
The 2nd table is the number of products that we need to sell each day.

 

DateProductSold
16-10-2019P1300
16-10-2019P1150
16-10-2019P250
16-10-2019P2100
17-10-2019P2200
17-10-2019P3100

 

DateProductLimit
16-10-2019P1500
16-10-2019P2100
17-10-2019P2300
17-10-2019P3100

 

The image below shows what I want to achieve which is the Limit for each product by day so I can know if the product sales exceeded the limit or no :

limit.png 

How can I achieve this with the 'Line and clustered column chart'.

Thank you


2 ACCEPTED SOLUTIONS

@Anonymous 

 

You can get something close to what you are looking for, though not very pretty (you can improve on it by naming the legend appropriately and playing around with the format pane to tweak the bars etc..):

 

Sales vs Limits 1.JPG

 or you can create a new chart showing the difference between sales and limit:

 

Sales vs Limits.JPG

 Here is the link to the PBI file:

Sales vs Limits PBI file 

 

Hope that helps





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

Anonymous
Not applicable

Hi @Anonymous Use the Below link, Ihvae created page 2 as per your requirment. 

 

get Updated PBIX file on below link..

https://drive.google.com/open?id=1ExQnZIh64Epwkfwt9bOubSeKvbTEJjR8

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

  • Create the relation between two tables using the Product name
  • Use filter date as current date to filter the latest result
  • Use line chart for showing the limit and Bra chart for actual sell count
  • relation ship will help to achive the same.
Anonymous
Not applicable

Thank you but I alread tried that:

  • I created relationship between the 2 tables based on concatinate (Product+Date) since if I only put product it will be many to many
  •  When I set the limit to the line values : Power BI sums all the values for that day.

Here is the image showing the result : 


result.png

Anonymous
Not applicable

  • Many to many relation ship will not disturb your requirment  it will help you to filter the related data.
  • also add the report level filter for Date to filter the report by current date  
  • You can change the total sum to distint count :- you will find the option as below

click on graph :- arrow in frant of fields column name:- change to count(Distint)

If you are still unbale to find the option change your column type to NUMBER

 

Anonymous
Not applicable

Thank you for your help, but I am new in PowerBI and I cound't figure it out.
Here is the link to the pbix file if you can help.

https://drive.google.com/open?id=1X4G4EVHDvR6_AA58kOKyk8lbEHqwREGV

Anonymous
Not applicable

Hi @Anonymous Use the Below link, Ihvae created page 2 as per your requirment. 

 

get Updated PBIX file on below link..

https://drive.google.com/open?id=1ExQnZIh64Epwkfwt9bOubSeKvbTEJjR8

Anonymous
Not applicable

@Anonymous @PaulDBrown 
Both solutions are great.
Thank you guys for you time, I really appreciate it.

@Anonymous 

 

You can get something close to what you are looking for, though not very pretty (you can improve on it by naming the legend appropriately and playing around with the format pane to tweak the bars etc..):

 

Sales vs Limits 1.JPG

 or you can create a new chart showing the difference between sales and limit:

 

Sales vs Limits.JPG

 Here is the link to the PBI file:

Sales vs Limits PBI file 

 

Hope that helps





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Hey @Anonymous  i have Updated your PBIX file.

 

Allow me to Update the PBIX on drive

OR

Share me EmailId so that i can send it to you.

 

Anonymous
Not applicable

Thank you very much.
I shared my email with you in private

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.