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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
PowerBInewb
Frequent Visitor

Subtracting by filtered data - Two datasets - New BI user

My company uses a series of resolve codes in our ticketing system. I have filtered these codes into a distinct count. This distinct count needs to be removed from our incomplete percentage that is displayed in a different visual (Marked as True=Rescheduled (this displays a percentage).

 

My question:

 

I wanted to subtract the instances of rescheduled calls based on the distinct filter of counted repair code (depicted by the 6 in the image) . What type of formula allows me to subtract based on filted conditions between two datasets?

 

 

Thanks.

 

 

 

Capture.PNG

 

 

2 ACCEPTED SOLUTIONS

ok, I think I understand what you are after but not 100% sure.

 

First of all, rather than use the values the way you have been, can you create Calculated Measures on each of your tables.

 

So on your _custom_eviews_SCReportrepariCodes_6 table create a measure like this:

 

Count of Calls 6 = CALCULATE(
        COUNTROWS('_custom_eviews SCReportRepairCodes_6') ,
        FILTER(
            '_custom_eviews SCReportRepairCodes_6' ,
            [RepairCode] = "EC")
            )

and then something similar on your Materials table.  Once you have these as measures you can create a 3rd measure which is the result of the first - the second.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

@PowerBInewb

 

In this scenario, I would rather tagging the Efficient Calls into False than substracting the count of Efficient Calls from the True category and adding that amount into False part.

 

If you use a calculated column to tagging a call is incomplete or not, you may add a nested IF statment like:

 

IF(RELATED('_custom_eviews SCReportRepairCodes_6'[Repair Code]="EC",False,True))

Regards,

 

View solution in original post

4 REPLIES 4
Phil_Seamark
Microsoft Employee
Microsoft Employee

Can you please post a sample of your datasets

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Dataset view.PNGtable EC count.PNGECfilter conditions.PNGTableRS.PNGTableRS conditions.PNG

@PowerBInewb

 

In this scenario, I would rather tagging the Efficient Calls into False than substracting the count of Efficient Calls from the True category and adding that amount into False part.

 

If you use a calculated column to tagging a call is incomplete or not, you may add a nested IF statment like:

 

IF(RELATED('_custom_eviews SCReportRepairCodes_6'[Repair Code]="EC",False,True))

Regards,

 

ok, I think I understand what you are after but not 100% sure.

 

First of all, rather than use the values the way you have been, can you create Calculated Measures on each of your tables.

 

So on your _custom_eviews_SCReportrepariCodes_6 table create a measure like this:

 

Count of Calls 6 = CALCULATE(
        COUNTROWS('_custom_eviews SCReportRepairCodes_6') ,
        FILTER(
            '_custom_eviews SCReportRepairCodes_6' ,
            [RepairCode] = "EC")
            )

and then something similar on your Materials table.  Once you have these as measures you can create a 3rd measure which is the result of the first - the second.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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