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.
Hi!
I try to explain this.
I would like to create a new column which shows data from another column (sales) IF that sale has happened in current month OTHERWISE blank cell.
I have created the calendar which has a data "IsCurrentMonth" = 1, if helps.
Goes too complicated for my brains, would appreciate your help. Thanks!
@venug20
Maybe this picture will help. Lets imagine that CurrentMonth is 9th. I would like to create New Column which shows only data from CurrentMonth.
I have also created a IsCurrentMonth column in calendar if we can use that.
Thank you!
Please look into this formula, it may helps you...
Datef = IF(CurrentMonth[Date] < [SM] , BLANK(), CALCULATE(SUM(CurrentMonth[Sales]), DATESBETWEEN(CurrentMonth[Date], [SM], MAX(CurrentMonth[Date]))))
When i try to your reuqirement, as you mention above like "Blank"....
it throughs error, why because not retrun text and calculation as well as.
see error below...
It it is solution to your query. Please accept as a solution, it is helpful to others.....
You may just add measure below.
Measure = CALCULATE ( SUM ( Table1[Sales] ), 'Calendar'[IsCurrentMonth] = 1 )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
94 | |
74 | |
71 | |
64 |
User | Count |
---|---|
143 | |
109 | |
103 | |
82 | |
74 |