Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Community,
I was informed that these are DAX measures.
I have created a table with these, btw all are sources from a sharepoint online list
NGUsersItems = UNION(
SELECTCOLUMNS('NG - Create Request List', "Name", 'NG - Create Request List'[Created By.title]),
SELECTCOLUMNS('NG - Get Templates Request List', "Name", 'NG - Get Templates Request List'[Created By.title] ),
SELECTCOLUMNS('NG - Self Check Request List', "Name", 'NG - Self Check Request List'[Created By.title])
)
and I added a measure
TotalNGUsers = DISTINCTCOUNT(NGUsersItems[Name])
my problem with these are whenever I add a line chart, I cannot filter it by the date table[date]. I am fairly new to power bi and I do not understand why because there is a [Created] column in this data. Any form of help or insights how I can fix this will highly be appreciated with a like and be marked as solution if it solves my problem. Thank you!
This is how it looks currently. What I want it to look like is show the number of total users per year.
kind of like this (this is a different measure which does not tackle the number of users but the entries)
Solved! Go to Solution.
Hi,
Like mentioned by bhanu make sure you have created a relationship between your tables.
Regarding your EDIT question. You can change the axis to categorical to achieve this. E.g.
Data:
I have relationship from 'Table (2)'[date] to 'calendar[date]'. With "continuous" setting the visual looks like this:
Now with "categorical" only dates with values are shown.
Note that this will not appear if you have date hierachy in the axis.
Proud to be a Super User!
Hi @KejGdr,
I hope you are doing well today 😄❤️
Looking at your issue The Problem is that your NGUsersItems table is disconnected from your date table, Since it is a calculated table created with UNION() , it does not maintain relationships with your original data tables
Here are a few Approaches to fix your DAX measures:
First Approach :
Replace your calculated table with measures that can interact with date filters (Instead of Calculated Table😞
-- Individual measures for each table
NG_Create_Users =
CALCULATE(
DISTINCTCOUNT('NG - Create Request List'[Created By.title]),
USERELATIONSHIP('Date'[Date], 'NG - Create Request List'[Created])
)
NG_GetTemplates_Users =
CALCULATE(
DISTINCTCOUNT('NG - Get Templates Request List'[Created By.title]),
USERELATIONSHIP('Date'[Date], 'NG - Get Templates Request List'[Created])
)
NG_SelfCheck_Users =
CALCULATE(
DISTINCTCOUNT('NG - Self Check Request List'[Created By.title]),
USERELATIONSHIP('Date'[Date], 'NG - Self Check Request List'[Created])
)
-- Combined measure
TotalNGUsers =
VAR CreateUsers = [NG_Create_Users]
VAR GetTemplatesUsers = [NG_GetTemplates_Users]
VAR SelfCheckUsers = [NG_SelfCheck_Users]
RETURN
CreateUsers + GetTemplatesUsers + SelfCheckUsers
Second Approach:
NGUsersWithDates =
UNION(
SELECTCOLUMNS(
'NG - Create Request List',
"Name", 'NG - Create Request List'[Created By.title],
"Date", 'NG - Create Request List'[Created]
),
SELECTCOLUMNS(
'NG - Get Templates Request List',
"Name", 'NG - Get Templates Request List'[Created By.title],
"Date", 'NG - Get Templates Request List'[Created]
),
SELECTCOLUMNS(
'NG - Self Check Request List',
"Name", 'NG - Self Check Request List'[Created By.title],
"Date", 'NG - Self Check Request List'[Created]
)
)
Third Approach: (most efficient approach)
TotalNGUsers =
VAR CombinedTable =
UNION(
SUMMARIZE(
'NG - Create Request List',
'NG - Create Request List'[Created By.title],
'NG - Create Request List'[Created]
),
SUMMARIZE(
'NG - Get Templates Request List',
'NG - Get Templates Request List'[Created By.title],
'NG - Get Templates Request List'[Created]
),
SUMMARIZE(
'NG - Self Check Request List',
'NG - Self Check Request List'[Created By.title],
'NG - Self Check Request List'[Created]
)
)
RETURN
CALCULATE(
DISTINCTCOUNT(CombinedTable[Created By.title]),
USERELATIONSHIP(CombinedTable[Created], 'Date'[Date])
)
Bonus Tips:
Make sure your date table:
Has a proper date hierarchy
Is marked as a date table
Has relationships with your fact tables
CumulativeNGUsers =
CALCULATE(
[TotalNGUsers],
FILTER(
ALLSELECTED('Date'),
'Date'[Date] <= MAX('Date'[Date])
)
)
The idea here is that you need to preserve the date column in your combined table and establish proper relationships with your date table for the time based filtering to work correctly
Hi @KejGdr,
Just looping back one last time to check if everything's good on your end. Let me know if you need any final support happy to assist if anything’s still open.
Thank you.
Hi @KejGdr,
Just wanted to follow up and confirm that everything has been going well on this. Please let me know if there’s anything from our end.
Please feel free to reach out Microsoft fabric community forum.
Hi @Ahmed-Elfeel I will give this a try and let you know if this has fixed my problem
Hi @KejGdr,
Thank you @Ahmed-Elfeel @ValtteriN @bhanu_gautam for your response to the query.
Has your issue been resolved?
If the response provided by the community member addressed your query, could you please confirm? It helps us ensure that the solutions provided are effective and beneficial for everyone.
Thank you for your understanding!
Hi @KejGdr,
I hope you are doing well today 😄❤️
Looking at your issue The Problem is that your NGUsersItems table is disconnected from your date table, Since it is a calculated table created with UNION() , it does not maintain relationships with your original data tables
Here are a few Approaches to fix your DAX measures:
First Approach :
Replace your calculated table with measures that can interact with date filters (Instead of Calculated Table😞
-- Individual measures for each table
NG_Create_Users =
CALCULATE(
DISTINCTCOUNT('NG - Create Request List'[Created By.title]),
USERELATIONSHIP('Date'[Date], 'NG - Create Request List'[Created])
)
NG_GetTemplates_Users =
CALCULATE(
DISTINCTCOUNT('NG - Get Templates Request List'[Created By.title]),
USERELATIONSHIP('Date'[Date], 'NG - Get Templates Request List'[Created])
)
NG_SelfCheck_Users =
CALCULATE(
DISTINCTCOUNT('NG - Self Check Request List'[Created By.title]),
USERELATIONSHIP('Date'[Date], 'NG - Self Check Request List'[Created])
)
-- Combined measure
TotalNGUsers =
VAR CreateUsers = [NG_Create_Users]
VAR GetTemplatesUsers = [NG_GetTemplates_Users]
VAR SelfCheckUsers = [NG_SelfCheck_Users]
RETURN
CreateUsers + GetTemplatesUsers + SelfCheckUsers
Second Approach:
NGUsersWithDates =
UNION(
SELECTCOLUMNS(
'NG - Create Request List',
"Name", 'NG - Create Request List'[Created By.title],
"Date", 'NG - Create Request List'[Created]
),
SELECTCOLUMNS(
'NG - Get Templates Request List',
"Name", 'NG - Get Templates Request List'[Created By.title],
"Date", 'NG - Get Templates Request List'[Created]
),
SELECTCOLUMNS(
'NG - Self Check Request List',
"Name", 'NG - Self Check Request List'[Created By.title],
"Date", 'NG - Self Check Request List'[Created]
)
)
Third Approach: (most efficient approach)
TotalNGUsers =
VAR CombinedTable =
UNION(
SUMMARIZE(
'NG - Create Request List',
'NG - Create Request List'[Created By.title],
'NG - Create Request List'[Created]
),
SUMMARIZE(
'NG - Get Templates Request List',
'NG - Get Templates Request List'[Created By.title],
'NG - Get Templates Request List'[Created]
),
SUMMARIZE(
'NG - Self Check Request List',
'NG - Self Check Request List'[Created By.title],
'NG - Self Check Request List'[Created]
)
)
RETURN
CALCULATE(
DISTINCTCOUNT(CombinedTable[Created By.title]),
USERELATIONSHIP(CombinedTable[Created], 'Date'[Date])
)
Bonus Tips:
Make sure your date table:
Has a proper date hierarchy
Is marked as a date table
Has relationships with your fact tables
CumulativeNGUsers =
CALCULATE(
[TotalNGUsers],
FILTER(
ALLSELECTED('Date'),
'Date'[Date] <= MAX('Date'[Date])
)
)
The idea here is that you need to preserve the date column in your combined table and establish proper relationships with your date table for the time based filtering to work correctly
@bhanu_gautam
Thank you for your response it worked but different to what I am aiming for in the visual. How can I make it so that the visual show the total of users per date?
for example for Nov 2025 it shows 6 distinct users were added but it also shows the total number of distinct users for this said month
EDIT: also apologies for this newbie questions, but the visual kinda zooms out quite far a bit is there anything I can do to not show dates that doesnt have data so that it can only show the relevant dates which has users and entries?
Hi,
Like mentioned by bhanu make sure you have created a relationship between your tables.
Regarding your EDIT question. You can change the axis to categorical to achieve this. E.g.
Data:
I have relationship from 'Table (2)'[date] to 'calendar[date]'. With "continuous" setting the visual looks like this:
Now with "categorical" only dates with values are shown.
Note that this will not appear if you have date hierachy in the axis.
Proud to be a Super User!
Modify your DAX to include the [Created] column:
DAX
NGUsersItems =
UNION(
SELECTCOLUMNS('NG - Create Request List', "Name", 'NG - Create Request List'[Created By.title], "Created", 'NG - Create Request List'[Created]),
SELECTCOLUMNS('NG - Get Templates Request List', "Name", 'NG - Get Templates Request List'[Created By.title], "Created", 'NG - Get Templates Request List'[Created]),
SELECTCOLUMNS('NG - Self Check Request List', "Name", 'NG - Self Check Request List'[Created By.title], "Created", 'NG - Self Check Request List'[Created])
)
Create a relationship between NGUsersItems[Created] and your Date table[Date]:
Go to the Model view.
Drag NGUsersItems[Created] to Date[Date] to create a relationship (make sure the data types match).
Update your measure if needed
TotalNGUsers = DISTINCTCOUNT(NGUsersItems[Name])
Proud to be a Super User! |
|
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 18 | |
| 12 | |
| 11 |