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, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
TheQ
Frequent Visitor

Create Dynamic Text to Alert User Based on Measure

Hi everyone,

 

I'm making a report to analyze some data. I want to implement an alert to check that the data uploaded is done correctly. Let's say I have data that looks like this:

 

GroupExpectedActualDifference (DAX)
A110
A211
A330
B440
B330
B220
C330
C321
C550

 

My end goal is to have a text box or card of some sort that will say something like:
"Please check the data upload for Groups A & C."

or "Data uploaded correctly" if all Groups produce 0s for Difference.

What's a good way to accomplish this? Thanks!

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @TheQ ,

 

Please try this code to create a measure.

Measure = 
VAR _Find_Group = SUMMARIZE(FILTER('Table','Table'[Difference] = 1),'Table'[Group])
VAR _RESULT1 = "Please check the data upload for Groups" &" "&CONCATENATEX(_Find_Group,[Group]," & ") &"."
VAR _RESULT2 = "Data uploaded correctly"
RETURN
IF(SUM('Table'[Difference])>0,_RESULT1,_RESULT2)

My Sample:

RicoZhou_1-1659066091818.png

Result is as below.

RicoZhou_0-1659066046404.png

 

Best Regards,
Rico Zhou

 

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

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @TheQ ,

 

Please try this code to create a measure.

Measure = 
VAR _Find_Group = SUMMARIZE(FILTER('Table','Table'[Difference] = 1),'Table'[Group])
VAR _RESULT1 = "Please check the data upload for Groups" &" "&CONCATENATEX(_Find_Group,[Group]," & ") &"."
VAR _RESULT2 = "Data uploaded correctly"
RETURN
IF(SUM('Table'[Difference])>0,_RESULT1,_RESULT2)

My Sample:

RicoZhou_1-1659066091818.png

Result is as below.

RicoZhou_0-1659066046404.png

 

Best Regards,
Rico Zhou

 

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

 

That works! Thanks for the help, Rico!

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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