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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Data in visual not coming through from Custom Column in Power Query

Hello, 

 

I have 2 near-identical custom columns in Power Query as follows:

Insight_refund = if List.AnyTrue(List.Transform({"refund"}, (substring) => Text.Contains([Message], substring))) then "Refund" else ""

Insight_credit = if List.AnyTrue(List.Transform({"credit"}, (substring) => Text.Contains([Message], substring))) then "Credit" else ""

 

These columns both work correctly: 

goodbecenergy_0-1696952031461.png

 

I would like to see the YoY difference in a line graph so created these measures to populate the y axis: 

Insight_credit_count =
CALCULATE(  
DISTINCTCOUNT(hotjar[ID_Ref No]),hotjar[Insight_credit] IN { "Credit" }  )
Insight_refund_count =
CALCULATE(  
DISTINCTCOUNT(hotjar[ID_Ref No]),hotjar[Insight_refund] IN { "Refund" }  )
 
The issue is that data from insight_refund_count or insight_refund isn't transferring so the tables are blank: 
goodbecenergy_1-1696952254120.pnggoodbecenergy_2-1696952329784.png

 

In comparison, the insight_credit_count works great:

goodbecenergy_3-1696952364448.pnggoodbecenergy_4-1696952386058.png

 

I am using a date table that is linked to this current table which is an Excel workbook hosted locally. 

 

Instead of "Credit" & "Refund", I have also tried using 1 and then using the main insight_xx columns to sum/count but it the same result is happening. 

 

I can't see a way to upload a file but here is a snapshot of what the data behind looks like: 

 

goodbecenergy_5-1696953144125.png

 

 

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Anonymous wondering if you have a filter that is not allowing you to see the refund  value? Can you hover over the funnel icon on the visual and see what kind of filters are applied and go from there?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

3 REPLIES 3
parry2k
Super User
Super User

@Anonymous ha ha, nice feedback. Nice to be a price once in a while, mostly I'm part of thieves  😜



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@Anonymous wondering if you have a filter that is not allowing you to see the refund  value? Can you hover over the funnel icon on the visual and see what kind of filters are applied and go from there?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

How did you know that?! You are a prince among thieves, thank you very much. I had duplicated the page which kept the filters although there wasn't any filters visible in the filters window. Lesson learned. 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors