Forum Discussion
Anonymous
8 years agoNot applicable
Help with creating new table using summarize
Hi Guys I am able to solve this business problem but I am having trouble in applying filters to the same. So below is the data that I am working on: ID1 Date Device_ID Network_ID St...
Anonymous
8 years agoNot applicable
I am just looking for a simple table which will show two columns and data will change when I apply some filters.
Zubair_Muhammad
8 years agoCommunity Champion
Anonymous
Try this technique
First create a single column calculated table
Parameters =
DATATABLE (
"No of ID2 enabled", INTEGER,
{
{ 1 },
{ 2 },
{ 3 },
{ 4 },
{ 5 }
}
)Now you can write a MEASURE (Assuming TableName is Table1)
Count of ID 1 =
VAR temp =
SUMMARIZE (
Table1,
Table1[ID1],
"Count of ID2", CALCULATE ( COUNT ( Table1[ID2] ), Table1[State] = "Enabled" )
)
RETURN
COUNTX (
FILTER (
temp,
[Count of ID2] = SELECTEDVALUE ( Parameters[No of ID2 enabled] )
),
[ID1]
)
- Zubair_Muhammad8 years agoCommunity Champion
Anonymous
See the attached file with your sample data
- Anonymous8 years agoNot applicable
You have created a table called parameters with values inserted in it manually. But the whole chanllenge with my problem i sto get those numbers populated automatically. I cannot add static column.