dax - How to sum measures per group in PowerBI -


here's edited version:

i have sample table using powerbi %currnt measure , rest column. have filters selected area=asia , salesoffice=australia , fyear =2018. have sum %currnt column(measure) , place under expectedresult column.

but can see in current resultset, when sum %current seems returns average (0.485) rather sum (0.97). need sum of %currnt first. expected result 0.97 per row

does of encounter same problem? let me know if find solution. appreciate help. thanks

fyear   fmonth        currentar    totalar    countfy   %currnt    expectedresult**     2018    august, 2018  18,000.00   25,000.00     2         0.72       0.97     2018    july, 2018    33,000.00   130,000.00    2         0.25       0.97                                                          **0.485** 

not sure have understand problem, have consider that, in dax, when creating measure, context of query everything.

i mean if create measure count or calculate something, dax apply current context of data, ie if apply filters, these filter applied context. maybe, should consider create measure context free calculation of max countfy column using calculation dax formula.

let me know if helps. if want go further can post , sample data investigate deeper on problem?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -