Forum Discussion

ahills's avatar
ahills
New Member
2 years ago

Sum Measure with Row Totals Not Overall Total

Hello,

I have 2 questions that I need help with. First question, I am using a measure to try and get the totals by each financial class category filtered to the start date in my slicer, but it will only show the overall total in each row. How can I get the individual row totals like I get in SQL? (Screenshots below)

Second question, since the minimum/first time a transaction was posted in the Medicare FFS category for my date range was 5/6 it is filtering to that date instead of the start date in the slicer of 5/1/2024. If I use the min_date_slicer measure to get Medicare FFS line to start pulling transactions before 5/1 it returns blank rows for all categories. Thanks for any help.

 

Begin AR Amt =
CALCULATE(SUM('all_charges_trans'[charge_amt]) + SUM('all_charges_trans'[adj_amt]) + SUM('all_charges_trans'[paid_amt]),
FILTER(ALL('all_charges_trans'),all_charges_trans[post_date] > 1900-01-01
&& all_charges_trans[post_date] < MIN(all_charges_trans[post_date])
   ))
 
min_date_slicer = minx(allselected('all_charges_trans') , 'all_charges_trans'[post_date])

 

Power BI:

 

SQL values:

2 Replies