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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

date in database not match with date user selected.

I have three tables: TRANSACTION, TRANSACTION_GROUP_BY_CIF and CIF. I create relationship by CIF(CIF) =TRANSACTION(CIF) AND TRANSACTION(CIF) = TRANSACTION_GROUP_BY_CIF(CIF). I make relationship those three tables for apply filter to interact each other.

+What I want to do:

Find average amount divide by number of day user selected from date between slicer.

I want to ask about datediff , when I disconnect relationship it show correct result (amount of day) from my select range date slicer. But when I connect relationship table it show wrong (amount of day).

Who can advise me about this problem or any suggestion?

Thank in advanced.DateDiff.PNG

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you. I sovled this problem already. 

1. Create table:

Bin = DATATABLE( "Id", INTEGER, "Bin", STRING, "Min", INTEGER, "Max", INTEGER, { {1,"$0-300",0,300},{2,"$300-1K",300,1000},{3,"$1K-2K",1000,2000},{4,"$2K-3K",2000,3000},{5,"$3K-4K",3000,4000},{6,"$4K-5K",4000,5000},{7,"$5K +",5000,99999999}})
2.Create Measure group by based on Bin table.
 
Finally i solved it.Thank you for your reply.

View solution in original post

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

To understand your scenario better, please show your sample data in text-tabular format in addition to (or instead of)  screen captures. That allows people trying to help to readily copy the data and run a quick test, plus it increases the likelihood of your question being answered. Just use 'Copy table' in Power BI and paste it here. Or, ideally, share the pbix (beware of confidential data).

Best  Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thank you. I sovled this problem already. 

1. Create table:

Bin = DATATABLE( "Id", INTEGER, "Bin", STRING, "Min", INTEGER, "Max", INTEGER, { {1,"$0-300",0,300},{2,"$300-1K",300,1000},{3,"$1K-2K",1000,2000},{4,"$2K-3K",2000,3000},{5,"$3K-4K",3000,4000},{6,"$4K-5K",4000,5000},{7,"$5K +",5000,99999999}})
2.Create Measure group by based on Bin table.
 
Finally i solved it.Thank you for your reply.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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