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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
abc_777
Solution Specialist
Solution Specialist

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
Solution Specialist
Solution Specialist

need calcuative column not measure. thx i solved it myself

View solution in original post

1 REPLY 1
abc_777
Solution Specialist
Solution Specialist

need calcuative column not measure. thx i solved it myself

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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