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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
abc_777
Super User
Super User

hi

hi

 

i have a single table  when i filter by

 

dont starts with CR

only invoice date 01-01-2024 to 01-01-2024 (one day)

 and net_amt >= 4000 then i see in power bi table or data menu tab which is on second on left side 165 data and this 165 is same with mssql query 

 

abc_777_0-1714716799921.png

but by  using measure formula

 

CALCULATE (
    COUNT('bm_retail_t ssummary'[INVOICE_NO]),
    FILTER (
        VALUES ( 'bm_retail_t ssummary'[INVOICE_NO] ),
        NOT ( LEFT ( 'bm_retail_t ssummary'[INVOICE_NO], 2 ) = "CR" )
            && CALCULATE (
                SUM ( 'bm_retail_t ssummary'[NET_AMT] ),
                ALLEXCEPT (
                    'bm_retail_t ssummary',
                    'bm_retail_t ssummary'[INVOICE_NO],
                    'bm_retail_t ssummary'[STORE_CODE]
                )
            ) >= 4000
    )
)
 
in power bi visual i see 621 in total .
 
abc_777_1-1714716906066.png

can some one help me out as this is same table and there are no relation with other table in measure calculaiton

 i want to have 165 output from single table measure formaula count of invoice number 

 

  there are few blank which are less than 4000 and this is fine. dont worrry about followings

abc_777_3-1714717054424.png

 


 

thanks

 

1 ACCEPTED SOLUTION
abc_777
Super User
Super User

need calcuative column not measure. thx i solved it myself

View solution in original post

1 REPLY 1
abc_777
Super User
Super User

need calcuative column not measure. thx i solved it myself

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.