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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Ister
Regular Visitor

Agregate, filter and agregate again

Hello all !

I have table CustBalance as datasource with such columns: Year, Month, Customer, CustGroup, Account, Balance.

And I need to do such report:

  1. exclude some rows by filter or slicer on Account field,
  2. then agregate with SUM(Balance) to table without Account field,
  3. then filter on summarized Balance, exclude all non-positive
  4. then agregate with SUM(Balance) to table without Customer field and place it in report.

So, in that way I agregate all accounts for each Customer, then take all positive values, and then agregate Customers to CustGroups.

Also it may be need to exclude non negative values on step 3, or keep all values.

The question is it possible in Power BI and DAX, without data manipulations inside datasource?

 

1 REPLY 1
v-qiuyu-msft
Community Support
Community Support

Hi @Ister,

 

Do you mean whether we can use DAX to achieve the requirement same as those four steps? 

 

If that is a case, it's possible to use DAX expression for dataset to aggregate values based on filtered values. In your scenario, you can use CALCULATE Function, FILTER Function and ALLEXCEPT Function. Perhaps you need to use another function. It would be better if you could share some sample data and screenshots about expected results.

 

If you have any question, please feel free to ask.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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