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
Anonymous
Not applicable

How to identify spend on specific doc type with other doc type as well

Hi Team,

 

i need solution on below logic, 

 

here i want to show only those vendors whoes spend happened with Doc type "OP" & with other Doc type too..e.g: (doc type = "OP" || doc type = "others")

if spend is happening with Only Doc type "OP" and with only other Doc type not required...e.g: ((doc type = "OP") and (doc type <> "OP" || doc type = "others"))

 

please find attached sample data for your reference i want only "Xyz" & "Lmn" vendor rows...

 

Thanks in advance..

 

Vendor NameDocument Type
OPXEXRXNXM
Abc     $ 300.0
Xyz $   90.0 $ 200.0  $ 230.0 
Lmn $ 150.0  $ 125.0  
Efg $   85.0    
4 REPLIES 4
Anonymous
Not applicable

Hello,

 

Thanks for prompt replay,

 

i have data as attached visual metrix table (row headers: vendor name, col: doc type , value: amount)

can you please help me with how to do changes in this visual using your solution.

 

Thanks!

 

 

Hi,

After you have created the calculated table like Vahid suggested. You can place values from this new table to your matrix and the values shown should fit your end goal. So in short use the new table to create the matrix.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




VahidDM
Super User
Super User

HI @Anonymous 

 

If your data table is like:

VahidDM_0-1642656515340.png

 

 

then use this code to add a new table with DAX:

calctables_formulabarempty

 

New Table = 
FILTER (
    'Table',
    NOT ( ISBLANK ( 'Table'[OP] ) )
        && ( 'Table'[XE] + 'Table'[XR] + 'Table'[XN] + 'Table'[XM] ) > 0
)

 

output:

VahidDM_1-1642656575721.png

 

 

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

Anonymous
Not applicable

Sample data.JPG

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.