cancel
Showing results for
Did you mean:

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a \$100 discount. Register Now

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 Code Actual Stock Minimum Stock 30000222 1000 1200 3002373 2000 1000
1 ACCEPTED SOLUTION
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.

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

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.

3 REPLIES 3
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.

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

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.

Solution Sage

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

Helper II

Hello,

Yeah I can do that !

Announcements

#### Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

#### Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

#### Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

#### Power BI Header Update

Read about the exciting updates for the Power BI forum.

Top Solution Authors
Top Kudoed Authors