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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Soulbroda
Frequent Visitor

Display only items not already existing on report

I am working on a new report at work. This report has to do with security purchase transactions. I need this report to only show securities bought for the first time when it is being pulled. To make this clearer, picture a scenario where I bought AMC, APE, and Gamestop securities in September. In October I bought extra units of AMC and I also bought FCEL. When I am pulling my reports for October, I want to see only FCEL as it's my first time buying it and not AMC which I already bought for the first time in September. In summary, only first-time buys are what I want.

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @Soulbroda 

Thanks for reaching out to us.

you can try this 

(1) create the measures,

countrows = CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),MONTH('Table'[date])<=SELECTEDVALUE('calendar'[month]) && 'Table'[name]=MIN('Table'[name])))
filter = IF(MONTH(MIN('Table'[date]))= SELECTEDVALUE('calendar'[month]) && [countrows]=1,1,0)

(2) put filter measure into visual-level filter and set it to 1 

vxiaotang_0-1666952215659.png

 

 

 

Best Regards,

Community Support Team _Tang

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

View solution in original post

3 REPLIES 3
Soulbroda
Frequent Visitor

I tried this and when I tried adding the countrows field to the report, I was getting an error saying "DAX comparison operations do not support comparing values of type integer with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values".

Another thing that might be good to know is that I have the name of my securities are coming from another table different from where the date column is coming from.

 

v-xiaotang
Community Support
Community Support

v-xiaotang
Community Support
Community Support

Hi @Soulbroda 

Thanks for reaching out to us.

you can try this 

(1) create the measures,

countrows = CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),MONTH('Table'[date])<=SELECTEDVALUE('calendar'[month]) && 'Table'[name]=MIN('Table'[name])))
filter = IF(MONTH(MIN('Table'[date]))= SELECTEDVALUE('calendar'[month]) && [countrows]=1,1,0)

(2) put filter measure into visual-level filter and set it to 1 

vxiaotang_0-1666952215659.png

 

 

 

Best Regards,

Community Support Team _Tang

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors