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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
eric98
Helper II
Helper II

Using Alert in Power BI Service

Hello, 

I'm trying to manage alerts so that I can watch the inventory of the products of my company.

The purpose of this is to be notify if the stock of a product is under the minimum stock.

For example, if I have 200 coca-cola and the minimum stock is 300, I will receive an alert.

Now the problem here is that I have two columns which contains the actual stock and the minimum stock and I don't know how to make alert based on the difference of the two columns. Each product have his own minimum stock.

For example, you can see the table below : 

 

Product CodeActual StockMinimum Stock
3000022210001200
300237320001000
1 ACCEPTED SOLUTION
v-xiaosun-msft
Community Support
Community Support

Hi @eric98 ,

 

According to your description, here is my solution.

Create a column.

 

Column =
IF ( 'Table'[Actual Stock] < 'Table'[Minimum Stock], 1, BLANK () )

 

Put the column into a card.

vxiaosunmsft_0-1665024777522.png

Set to trigger an alarm when the sum of column is greater than 0. And then you will get the notification.

vxiaosunmsft_1-1665024777527.pngvxiaosunmsft_2-1665024777529.png

 

Best Regards,
Community Support Team _ xiaosun

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-xiaosun-msft
Community Support
Community Support

Hi @eric98 ,

 

According to your description, here is my solution.

Create a column.

 

Column =
IF ( 'Table'[Actual Stock] < 'Table'[Minimum Stock], 1, BLANK () )

 

Put the column into a card.

vxiaosunmsft_0-1665024777522.png

Set to trigger an alarm when the sum of column is greater than 0. And then you will get the notification.

vxiaosunmsft_1-1665024777527.pngvxiaosunmsft_2-1665024777529.png

 

Best Regards,
Community Support Team _ xiaosun

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Shahfaisal
Solution Sage
Solution Sage

Can you create a calculation in your model that subtracts the two fields?

Hello, 

Yeah I can do that !

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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