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 All,
I am trying to create a measure that will return the same output as "Period with Rev". It is the distinct count of period when there is data. Does anyone know how I can achieve the same output?
Thanks.
Regards,
BK
Solved! Go to Solution.
Hi, @Anonymous
Try to create a measure below:
Period with Rev =
VAR PeriodWithRev =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Period] ),
FILTER ( ALL ( 'Table' ), 'Table'[Revenue] <> BLANK () )
)
RETURN
IF ( ISBLANK ( SELECTEDVALUE ( 'Table'[Revenue] ) ), BLANK (), PeriodWithRev )
Sample:
Result:
Change the data and test it:
Please refer to the attachment below for details
Is this the result you want? Hope this is useful to you
Please feel free to let me know If you have further questions
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Try to create a measure below:
Period with Rev =
VAR PeriodWithRev =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Period] ),
FILTER ( ALL ( 'Table' ), 'Table'[Revenue] <> BLANK () )
)
RETURN
IF ( ISBLANK ( SELECTEDVALUE ( 'Table'[Revenue] ) ), BLANK (), PeriodWithRev )
Sample:
Result:
Change the data and test it:
Please refer to the attachment below for details
Is this the result you want? Hope this is useful to you
Please feel free to let me know If you have further questions
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Assuming the Period column has been dragged from the Calendar Table and revenue is a measure, try this measure
Period with rev = countrows(filter(values(calendar[period]),[revenue]>0))
Hope this helps.
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 |
---|---|
114 | |
100 | |
75 | |
73 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |