The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I'm new in DAX, and I'm having a problem in counting the number of days with a condition. I need a measure that will count the days passed from the slicer date where the GL OB is more than the Amort OB and will stop the count if there will be a date where the Amort OB is more than equal the GL OB. Please see the table below (The No. of days column is the result of the measure I needed):
Date | Amort OB | GL OB | NO OF DAYS |
Sep-19 | 10,000 | 12,000 | 0 |
Oct-19 | 8,000 | 8,000 | 0 |
Nov-19 | 6,000 | 8,000 | 31 |
Dec-19 | 4,000 | 8,000 | 61 |
Could not solve in one measure. Created a column and measure
First column: If amount GL OB is greater then Amort OB
Can this be solve without adding a column?
User | Count |
---|---|
14 | |
12 | |
7 | |
6 | |
5 |
User | Count |
---|---|
28 | |
19 | |
13 | |
7 | |
5 |