Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
select
InstanceId, count(DISTINCT Date)
from
Storage
where
month(date) = 12
and year(date) = 2019
and tags like '%DemoManaged%'
group by
InstanceId
Hello, I am very new to Power BI and need help to create a new measure. The Main table (Storage) has around 25-30 columns.
The table contains InstanceId which I need to display in a Power BI - Table visualization along with the count.
I am able to do it through SQL query, and I am not able to create a new Measure for the same.
Any help is highly appreciated.
Solved! Go to Solution.
Proud to be a Super User!
Hi @sirpentagon ,
We can use the following measure after put the id into the table visual to meet your requirement:
Count =
CALCULATE (
DISTINCTCOUNT ( 'Storage'[Date] ),
FILTER (
'Storage',
'Storage'[Date] >= DATE ( 2019, 12, 1 )
&& 'Storage'[Date] <= DATE ( 2019, 12, 31 )
&& CONTAINSSTRING ( 'Storage'[tags], "DemoManaged" )
)
)
Best regards,
Hi @sirpentagon ,
We can use the following measure after put the id into the table visual to meet your requirement:
Count =
CALCULATE (
DISTINCTCOUNT ( 'Storage'[Date] ),
FILTER (
'Storage',
'Storage'[Date] >= DATE ( 2019, 12, 1 )
&& 'Storage'[Date] <= DATE ( 2019, 12, 31 )
&& CONTAINSSTRING ( 'Storage'[tags], "DemoManaged" )
)
)
Best regards,
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
31 | |
30 | |
23 | |
14 | |
10 |
User | Count |
---|---|
23 | |
21 | |
16 | |
10 | |
9 |