Friday, 11 July 2025
Thursday, 10 July 2025
Getting data from different tables using measure
To create a measure in Power BI that retrieves the confirmed_date
from table2
based on the ticket_num
in table1
, you can use DAX (Data Analysis Expressions). Here is a step-by-step guide:
Open Power BI Desktop and load your data tables (
table1
andtable2
).Create Relationships:
- Go to the "Model" view.
- Create a relationship between
table1
andtable2
using theticket_num
column.
Create a New Measure:
- Go to the "Report" view.
- Click on the
table1
in the Fields pane. - Click on "New Measure" in the ribbon.
Write the DAX Formula:
- In the formula bar, enter the following DAX formula to create the measure:
Confirmed Date Measure =
CALCULATE(
MAX(table2[confirmed_date]),
FILTER(
table2,
table2[ticket_num] = SELECTEDVALUE(table1[ticket_num])
)
)
This measure does the following:
CALCULATE
is used to change the context in which the data is evaluated.MAX(table2[confirmed_date])
retrieves the maximum confirmed date fromtable2
. Sincetable2
has a one-to-many relationship withtable1
, this will effectively retrieve the confirmed date for the correspondingticket_num
.FILTER(table2, table2[ticket_num] = SELECTEDVALUE(table1[ticket_num]))
filterstable2
to match theticket_num
from the currently selected row intable1
.
- Use the Measure:
- You can now use the
Confirmed Date Measure
in your reports, tables, or visualizations to display the confirmed date fromtable2
for eachticket_num
intable1
.
- You can now use the
This approach ensures that the confirmed date from table2
is correctly associated with the corresponding records in table1
based on the ticket_num
column.
Wednesday, 9 July 2025
AI Websites
Bolt-- https://bolt.new/ -For coding
Cursor--https://cursor.com/ -For coding
For Building Dashboards--https://www.thebricks.com/
Check New AI Tools launch each day -- https://openrouter.ai/
Analyze data in Excel -- https://numerous.ai/
Tuesday, 1 July 2025
Multiply & divide with One column & one measure
- Below [RCTQTY] is a column & [Sampling Measure] is a measure
- Below [SN_Count] is a column & [Expected Uploads Measure1] is a measure
Saturday, 21 June 2025
Create Button Slicer for Monthly, Weekly & yearly Data
Video Ref:
https://www.youtube.com/watch?v=NA8KcFgxrG0
- Modelling > New Parameter > Fields
- Select the parameters for Monthly,Weekly,Yearly as shown below
- After this, Insert button slicer and click on the parameter name which you created.
Wednesday, 18 June 2025
Ageing calculation using DAX
- In the Below DAX function we are calculating ageing only for the tickets which are open.
- If the Ticket is closed, then it is mentioned as "NA"
DAX Code
Ageing Working Days =
Tuesday, 17 June 2025
Creating Date Table in Power Bi
Calculating Working Days in Power Bi DAX
References :
Step-1:
Create a calculated column in Date table.
Step-2: Workingdays to Close
- ALL Function-> This function removes any filters that might be applied to the 'RefTable'. It ensures that the calculation considers all rows in the 'RefTable', regardless of any existing filters.
Wednesday, 11 June 2025
Power Bi Links
Sample Project Links
Creating Progress Visual in real time
Beautiful SVG Targets vs Actuals Indicators in Power BI (No Custom Visuals!)
Download Animated Icons
4000+ Free High-quality Animated Icons
UI/UX Toolkit
DAX measure to get the Id record of last updated date
IsLatestActivity =
VAR CurrentIQMS = MAX('POR D'[Id])
VAR CurrentDate = MAX('POR D'[Updated Date])
VAR LatestRow =
TOPN(
1,
FILTER(
ALL('POR D'),
'POR D'[Id] = CurrentIQMS
),
'POR D'[Updated Date], DESC
)
RETURN
IF (
COUNTROWS(
FILTER(
LatestRow,
'POR D'[Id] = CurrentIQMS &&
'POR D'[Updated Date] = CurrentDate
)
) > 0,
1,
0
)
-
Herbal plants to grow in home Different types of keerai ----- http://www.indiandietrecipes.com/2016/03/pictures-of-various-types-of-gree...
-
What is a Mirror A mirror is most often made with a highly polished surface of a metal, placed behind a glass. A mirror works by refle...