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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Jakelmy
Regular Visitor

Sum & Count on new table

Hi i need help on shaping my data but i couldnt find a proper subject to visualize it. Hopefully i can explain here better.

 

I have 1 table contain inventory number & 3 different table indicate type of transaction.

This 3 table have transaction number with inventory number & quantity, this table have repeating inventory number with same transaction number indicate more detail in the product but its in another table.

And i have another 3 table contain unique transaction number & multiple time record.

 

What i want to do is first to have a new table having the master inventory code as column1 & 3 different type of transaction as column2 column3 column4 showing the count of how many time the inventory number have been use similar to countif in excel. And column5 column6 column7 to show the cumulative quantity of the inventory number similar to sumif in excel.

 

Really appreciate your help,

Thanks

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @Jakelmy ,

 

Please provide more detail information to help us clarify this scenario.

See if you can paste the image of the sample data and the result you expected.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Super User
Super User

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

General replacement for COUNTIF in Excel is something like:

 

COUNTROWS(FILTER('Table',[Column]="Something"))



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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