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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Filter row with two different columns as a prerequisite to calculate a different row in one table

Hello dear Power BI community, I have the following problem, which I haven't been able to solve so far. My data table looks like this:

Datenset.PNG

It's about rental income and operating costs for apartments, which are always in one line per month and are assigned to the respective apartment via the Identifier (last  Column in the right). There are other data records in the table that are not rent or operating costs, but they are hidden The aim should be to filter the Konto (H) column with the specification "60000 Miete" and if the Betrag (S) column = 0 (both marked yellow), the row underneath with the column Konto (H) should be filtered with the "60020 Betriebskosten" an column Betrag (S) can be mapped as a result in a measure (green marking). If the prerequisite is to meet several data sets in the same month, they should be summed up. The result from the mapped data for the measure should be

June = 120

July = 270

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

I check the snapshot that you provided but I can't find the corresponding record groups that can be aggregated.
Is there any field that can be used to remark these record groups? If that is the case, you can use the date field and that category field as conditions of summary records.

formula =
CALCULATE (
    SUM ( Table[Betrag] ),
    ALLSELECTED ( Table ),
    VALUES ( Table[Datum] ),
    VALUES ( Table[Category] )
)

Regards,

Xiaxoin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous,

I check the snapshot that you provided but I can't find the corresponding record groups that can be aggregated.
Is there any field that can be used to remark these record groups? If that is the case, you can use the date field and that category field as conditions of summary records.

formula =
CALCULATE (
    SUM ( Table[Betrag] ),
    ALLSELECTED ( Table ),
    VALUES ( Table[Datum] ),
    VALUES ( Table[Category] )
)

Regards,

Xiaxoin Sheng

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.