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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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