Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Jiahui2805
Regular Visitor

Need Urgent help with building . Beginner in Power BI.

Hi, i need to do up a report based on my data below.

Hope can get some help as i am still very new to power bi.

Jiahui2805_0-1705116188163.png

 

Appreciate all the help i can get.

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Jiahui2805 

 

You can create several measures as follow.

 

Apr = 
VAR _a = CALCULATE(SUM(DATA[Value]), FILTER(ALLEXCEPT(DATA, DATA[Shape]), EXACT(DATA[Months], "Apr") && EXACT(DATA[Categoy], "Applicable for Discount")))
VAR _d = CALCULATE(SUM(DATA[Value]), FILTER(ALLEXCEPT(DATA, DATA[Shape]), EXACT(DATA[Months], "Apr") && EXACT(DATA[Categoy], "Discount")))
RETURN
DIVIDE(_d, _a)

 

 

 

May = 
VAR _a = CALCULATE(SUM(DATA[Value]), FILTER(ALLEXCEPT(DATA, DATA[Shape]), EXACT(DATA[Months], "May") && EXACT(DATA[Categoy], "Applicable for Discount")))
VAR _d = CALCULATE(SUM(DATA[Value]), FILTER(ALLEXCEPT(DATA, DATA[Shape]), EXACT(DATA[Months], "May") && EXACT(DATA[Categoy], "Discount")))
RETURN
DIVIDE(_d, _a)

 

 

vxuxinyimsft_0-1705313661753.png

Is this the result you expect?

 

Best Regards,
Community Support Team _Yuliax

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Jiahui2805 

 

You can create several measures as follow.

 

Apr = 
VAR _a = CALCULATE(SUM(DATA[Value]), FILTER(ALLEXCEPT(DATA, DATA[Shape]), EXACT(DATA[Months], "Apr") && EXACT(DATA[Categoy], "Applicable for Discount")))
VAR _d = CALCULATE(SUM(DATA[Value]), FILTER(ALLEXCEPT(DATA, DATA[Shape]), EXACT(DATA[Months], "Apr") && EXACT(DATA[Categoy], "Discount")))
RETURN
DIVIDE(_d, _a)

 

 

 

May = 
VAR _a = CALCULATE(SUM(DATA[Value]), FILTER(ALLEXCEPT(DATA, DATA[Shape]), EXACT(DATA[Months], "May") && EXACT(DATA[Categoy], "Applicable for Discount")))
VAR _d = CALCULATE(SUM(DATA[Value]), FILTER(ALLEXCEPT(DATA, DATA[Shape]), EXACT(DATA[Months], "May") && EXACT(DATA[Categoy], "Discount")))
RETURN
DIVIDE(_d, _a)

 

 

vxuxinyimsft_0-1705313661753.png

Is this the result you expect?

 

Best Regards,
Community Support Team _Yuliax

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

qqqqqwwwweeerrr
Super User
Super User

Hi @Jiahui2805 

 

I have created a random data set in excel which looks like this 

 

qqqqqwwwweeerrr_0-1705118291216.png

and by creating these measure you can get what you what.

Applicable for Discount = CALCULATE(SUM(Sheet1[Value]),FILTER(Sheet1,Sheet1[Catregory] = "Applicable for discount"))
Discount = CALCULATE(SUM(Sheet1[Value]),FILTER(Sheet1,Sheet1[Catregory] = "Discount"))
percentage = DIVIDE([Discount],[Applicable for Discount])
and by using these above measure results looks like this
qqqqqwwwweeerrr_1-1705118368616.png

Hope this solves your problem if not please share more details 

 Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: https://www.youtube.com/@letssolveproblem


Regards

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.