Forum Discussion
FahadQ
2 years agoNew Member
Dax Formula Help - For given columns and filter value SUM another column
I have inputted the data set below and power bi report layout I would like to acheive
Basically I need to know the DAX formula for
SUM (VarGroup) for given PolicyNumber, WS Instance, penedid,Coverage Date, where status = Active
Report
| PolicyNumber | Cov Eff Date | Auto Added | Endorsement Code | Endorsement Title | Endorsement Effective Date | Cancel Date | Endorsement Expiry Date | Signature Required | Signed by Policyholder | VarGroup |
| GE 1 36131 | September 1, 2017 | No | SC001 | Exclusion | July 1, 2015 | No | 5 | |||
| GE 1 36131 | September 1, 2016 | No | SC001 | Exclusion | July 1, 2015 | No | 5 | |||
| GE 1 36131 | September 1, 2015 | No | SC001 | Exclusion | July 1, 2015 | No | 5 | |||
| GE 1 36131 | September 1, 2014 | No | SC001 | Exclusion | July 1, 2015 | No | 5 | |||
| GE 1 36131 | September 1, 2014 | No | SC001 | Exclusion | September 1, 2014 | June 30, 2015 | No | |||
| GE 1 36131 | September 1, 2013 | No | SC001 | Exclusion | September 1, 2010 | No | 2 | |||
| GE 1 36131 | September 1, 2012 | No | SC001 | Exclusion | September 1, 2010 | No | 2 |
Data
| PolicyNumber | Auto Added | Endorsement Code | Endorsement Title | Endorsement Effective Date | Cancel Date | Cov Eff Date | Endorsement Expiry Date | Signature Required | Signed by Policyholder | Name | Values | WS Instance | Pen ENDID | Status | Detail ID | Variable ID | VarGroup |
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2014 | No | Excluded from ABC | Tokyo | 851110 | 4902931 | Active | 3183723 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2014 | No | Excluded from ABC | Tsuk | 851110 | 4902931 | Active | 3183721 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2014 | No | Excluded from ABC | Towa | 851110 | 4902931 | Active | 3183722 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2014 | No | Excluded from ABC | Hanwa | 851110 | 4902931 | Active | 3183724 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2014 | No | Excluded from ABC | Jap | 851110 | 4902931 | Active | 3183725 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | September 1, 2014 | June 30, 2015 | September 1, 2014 | No | Excluded from ABC | Hanwa | 851110 | 4902930 | Cancelled | 3183718 | 1187 | |||
| GE 1 36131 | No | SC001 | Exclusion | September 1, 2014 | June 30, 2015 | September 1, 2014 | No | Excluded from ABC | Towa | 851110 | 4902930 | Cancelled | 3183716 | 1187 | |||
| GE 1 36131 | No | SC001 | Exclusion | September 1, 2014 | June 30, 2015 | September 1, 2014 | No | Excluded from ABC | Tsuk | 851110 | 4902930 | Cancelled | 3183715 | 1187 | |||
| GE 1 36131 | No | SC001 | Exclusion | September 1, 2014 | June 30, 2015 | September 1, 2014 | No | Excluded from ABC | Jap | 851110 | 4902930 | Cancelled | 3183719 | 1187 | |||
| GE 1 36131 | No | SC001 | Exclusion | September 1, 2014 | June 30, 2015 | September 1, 2014 | No | Excluded from ABC | Tokyo | 851110 | 4902930 | Cancelled | 3183717 | 1187 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2017 | No | Excluded from ABC | Jap | 100028 | 6570804 | Active | 4492710 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2017 | No | Excluded from ABC | Tsuk | 100028 | 6570804 | Active | 4492706 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2017 | No | Excluded from ABC | Towa | 100028 | 6570804 | Active | 4492707 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2017 | No | Excluded from ABC | Tokyo | 100028 | 6570804 | Active | 4492708 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2017 | No | Excluded from ABC | Hanwa | 100028 | 6570804 | Active | 4492709 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | September 1, 2010 | September 1, 2013 | No | Excluded from ABC | Tsuk | 765825 | 4014096 | Active | 2558828 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | September 1, 2010 | September 1, 2013 | No | Excluded from ABC | towa | 765825 | 4014096 | Active | 2558829 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2016 | No | Excluded from ABC | Hanwa | 995382 | 6510535 | Active | 4445863 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2016 | No | Excluded from ABC | Tsuk | 995382 | 6510535 | Active | 4445860 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2016 | No | Excluded from ABC | Tokyo | 995382 | 6510535 | Active | 4445862 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2016 | No | Excluded from ABC | Towa | 995382 | 6510535 | Active | 4445861 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2016 | No | Excluded from ABC | Jap | 995382 | 6510535 | Active | 4445864 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2015 | No | Excluded from ABC | Tokyo | 908778 | 5507017 | Active | 3664358 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2015 | No | Excluded from ABC | Tsuk | 908778 | 5507017 | Active | 3664356 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2015 | No | Excluded from ABC | Towa | 908778 | 5507017 | Active | 3664357 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2015 | No | Excluded from ABC | Hanwa | 908778 | 5507017 | Active | 3664359 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | July 1, 2015 | September 1, 2015 | No | Excluded from ABC | jap | 908778 | 5507017 | Active | 3664360 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | September 1, 2010 | September 1, 2012 | No | Excluded from ABC | Tsuk | 697648 | 3354307 | Active | 2111839 | 1187 | 1 | |||
| GE 1 36131 | No | SC001 | Exclusion | September 1, 2010 | September 1, 2012 | No | Excluded from ABC | towa | 697648 | 3354307 | Active | 2111840 | 1187 | 1 |
Hi FahadQ , try this measure:
_VarGroup = CALCULATE( SUM( data[VarGroup] ), data[Status] = "Active" )
2 Replies
- AnonymousNot applicable
Hi FahadQ ,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information and description to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng