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
eddieatchisonam
Regular Visitor

Confused Data Help - New to Power BI

Greetings All! 

I am a very new user to Power Bi and having a bit of trouble. I just can't wrap my head aroud what I need. I'm hoping someone can help me understand the logic behind getting to the data that I need. Please let me know if I didn't explain clearly or give enough direction. This is really hard to even exlain. Thank you so much in advance for the support and help. 


This is a collection report.

I have a list of Accounts Assigned
I have a list of Transactions. 
(these are relationship by account number.)

What I ultimately need - I need to know if Mickey Mouse was in the Accounts assigned list say December 2020, How much did Mickey Mouse actually pay on any other accounts during the same time period. 

So - in an excel world - I think i would index/match the Name from accounts, and match it to all the transactions. Then I would have name in both queries. then some really long IF statement to basically say - IF mickey exists in Assigned Date for selected time frame - sum transaction amount from same date. Or something along those lines. 

As I said this is soooooo hard to explain. Does anyone remotely understand what I'm trying to achieve? What other info do you need from me to try and help. Thanks again. 

 

 

(accounts[ Assigned Amount],
(accounts[ Name1],
(accounts[Account Number],
(accounts[Assign Date],
(transactions[Amount],
(transactions[Transaction Date],
(transactions[Account Number],

 

 

So:when i click the slicer to select Dec and 2020,
I need a probably list to show:

 

 

 

(transaction[Account Number] first lookup in (accounts[Name1]

IF (accounts[Name1] exists in (transaction[Account Number], then sum (transactions[Amount] for any (accounts[Account Number] during (transactions[Transaction Date]

 

 


I'm more confused than when I started writing this. Thanks for the help or even the time to try and understand my confused world. 

Have a great day. 

 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @eddieatchisonam ,

Based on your description, I have created a sample table and you can create a measure like this:

AccountsAccountsTransactionTransaction

Measure = 
CALCULATE (
    SUM ( 'Transaction'[Amount] ),
    FILTER (
        'Accounts',
        'Accounts'[Account Number]
            IN DISTINCT ( 'Transaction'[Account Number] )
                && 'Accounts'[Assign Date].[Year]
                    = SELECTEDVALUE ( 'Transaction'[Transaction Date].[Year] )
                && 'Accounts'[Assign Date].[Month]
                    = SELECTEDVALUE ( 'Transaction'[Transaction Date].[Month] )
    )
)

re.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
eddieatchisonam
Regular Visitor

What a month this has been! THank you so much for the time and help. I've loaded that in, and it doesn't seem to be giving the results desired. I'm going to work on a bit more to see if I can give a better explanation. 

Ashish_Mathur
Super User
Super User

Hi,

It will be great if you can share your working MS Excel file with your formulas in there so that your logic can be understaood and translated in the DAX formula language.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-yingjl
Community Support
Community Support

Hi @eddieatchisonam ,

Based on your description, I have created a sample table and you can create a measure like this:

AccountsAccountsTransactionTransaction

Measure = 
CALCULATE (
    SUM ( 'Transaction'[Amount] ),
    FILTER (
        'Accounts',
        'Accounts'[Account Number]
            IN DISTINCT ( 'Transaction'[Account Number] )
                && 'Accounts'[Assign Date].[Year]
                    = SELECTEDVALUE ( 'Transaction'[Transaction Date].[Year] )
                && 'Accounts'[Assign Date].[Month]
                    = SELECTEDVALUE ( 'Transaction'[Transaction Date].[Month] )
    )
)

re.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.