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.
I am trying to count the number of hotels in "Hotel Names" that have blank "Descriptions" in the table below. My current measures keep on counting repeated names as additional hotels. Please help.
Hi @Anonymous ,
How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
If you want to calculate the amount that have empty description completely, such as following situation:
If you do not want to count C, you can use the following measure:
Count = COUNTROWS ( FILTER ( ADDCOLUMNS ( SELECTCOLUMNS ( DISTINCT ( 'Hotel'[Name] ), "n", [Name] ), "MaxLength", MAXX ( FILTER ( ADDCOLUMNS ( 'Hotel', "DescriptionLength", LEN ( 'Hotel'[Description] ) ), [DescriptionLength] = [n] ), [DescriptionLength] ) ), [MaxLength] = 0 ) )
BTW, pbix as attached.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can try the below DAX
Try
Blank = CALCULATE(DISTINCTCOUNTNOBLANK(Hotel[Hotel Name ]),not( ISBLANK(Hotel[Desc])))
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 |
---|---|
115 | |
100 | |
89 | |
68 | |
61 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |